From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../plain&only_with_tag=HEAD/index.html | 13 + .../index.html | 15 + .../index.html | 11 + .../plain&only_with_tag=MAIN/index.html | 12 + .../plain&sortby=rev&only_with_tag=MAIN/index.html | 23 + .../plain&sortby=rev/index.html | 23 + .../plain&sortby=rev&only_with_tag=MAIN/index.html | 44 + .../plain&sortby=rev/index.html | 44 + .../plain&only_with_tag=HEAD/index.html | 50 + ...appers?rev=1.3&sortby=author&only_with_tag=MAIN | 50 + .../plain&only_with_tag=HEAD/index.html | 21 + .../index.html | 26 + .../index.html | 26 + .../index.html | 12 + .../plain&only_with_tag=HEAD/index.html | 13 + .../index.html | 20 + .../index.html | 21 + .../plain&only_with_tag=MAIN&rev=1.13&sortby=log | 1076 +++++++++++ .../plain&rev=1.2&sortby=author | 1068 +++++++++++ .../acinclude.m4?content-type=text/plain&rev=1.4 | 1081 +++++++++++ .../index.html | 1068 +++++++++++ .../plain/index.html | 1068 +++++++++++ .../~checkout~/code/acinclude.m4?rev=1.10 | 1049 ++++++++++ .../index.html | 1049 ++++++++++ .../plain/index.html | 1049 ++++++++++ .../index.html | 1049 ++++++++++ .../plain/index.html | 1049 ++++++++++ .../code/acinclude.m4?rev=1.11&sortby=rev | 1049 ++++++++++ .../index.html | 1049 ++++++++++ .../plain/index.html | 1049 ++++++++++ .../code/acinclude.m4?rev=1.12&sortby=author | 1049 ++++++++++ .../~checkout~/code/acinclude.m4?rev=1.13 | 1076 +++++++++++ .../plain&sortby=author/index.html | 1076 +++++++++++ .../index.html | 1079 +++++++++++ .../plain&sortby=log&only_with_tag=HEAD/index.html | 1079 +++++++++++ .../plain/index.html | 1079 +++++++++++ .../code/acinclude.m4?rev=1.14&only_with_tag=HEAD | 1079 +++++++++++ .../code/acinclude.m4?rev=1.14&sortby=log | 1079 +++++++++++ .../~checkout~/code/acinclude.m4?rev=1.2 | 1068 +++++++++++ .../plain&sortby=log&only_with_tag=MAIN/index.html | 1068 +++++++++++ .../~checkout~/code/acinclude.m4?rev=1.3 | 1076 +++++++++++ .../index.html | 1076 +++++++++++ .../plain/index.html | 1076 +++++++++++ .../~checkout~/code/acinclude.m4?rev=1.4 | 1081 +++++++++++ .../index.html | 1081 +++++++++++ .../~checkout~/code/acinclude.m4?rev=1.5 | 1081 +++++++++++ .../index.html | 1081 +++++++++++ .../plain/index.html | 1081 +++++++++++ .../~checkout~/code/acinclude.m4?rev=1.6 | 1086 +++++++++++ .../index.html | 1086 +++++++++++ .../index.html | 1054 +++++++++++ .../plain/index.html | 1054 +++++++++++ .../~checkout~/code/acinclude.m4?rev=1.8 | 1059 +++++++++++ .../index.html | 1059 +++++++++++ .../plain/index.html | 1059 +++++++++++ .../~checkout~/code/acinclude.m4?rev=1.9 | 1046 ++++++++++ .../index.html | 1046 ++++++++++ .../plain/index.html | 1046 ++++++++++ .../plain&hideattic=0&sortby=date/index.html | 66 + .../plain&hideattic=0&sortby=date/index.html | 27 + .../plain&hideattic=0&sortby=date/index.html | 95 + .../plain&hideattic=0&sortby=date/index.html | 12 + .../plain&hideattic=0&sortby=date/index.html | 11 + .../plain&hideattic=0&sortby=date/index.html | 27 + .../plain&hideattic=0&sortby=date/index.html | 82 + .../plain&hideattic=0&sortby=date/index.html | 126 ++ .../plain&hideattic=0&sortby=date/index.html | 128 ++ .../plain&hideattic=0&sortby=date/index.html | 127 ++ .../plain&hideattic=0&sortby=date/index.html | 207 ++ .../plain&hideattic=0&sortby=date/index.html | 265 +++ .../plain&hideattic=0&sortby=date/index.html | 185 ++ .../plain&sortby=log/index.html | 4 + .../plain&hideattic=0&sortby=date/index.html | 4 + .../plain&sortby=log/index.html | 4 + .../plain&hideattic=0&sortby=date/index.html | 4 + .../plain&hideattic=0&sortby=date/index.html | 5 + .../plain&sortby=log/index.html | 4 + .../plain&hideattic=0&sortby=date/index.html | 6 + .../plain&hideattic=0&sortby=date/index.html | 163 ++ .../plain&hideattic=0/index.html | 693 +++++++ .../plain&sortby=author/index.html | 16 + .../plain&sortby=author/index.html | 17 + .../plain&sortby=date/index.html | 19 + .../index.html | 340 ++++ .../plain&rev=1.12&sortby=date | 150 ++ .../plain&rev=1.17&sortby=author | 173 ++ .../plain&rev=1.6&sortby=author | 134 ++ .../plain&hideattic=0&sortby=rev/index.html | 103 + .../plain&sortby=author/index.html | 103 + .../plain&hideattic=0&sortby=rev/index.html | 148 ++ .../plain&sortby=log/index.html | 148 ++ .../plain&sortby=log/index.html | 147 ++ .../plain&hideattic=0&sortby=rev/index.html | 150 ++ .../plain&sortby=date/index.html | 172 ++ .../code/nel/INSTALL?rev=1.13&sortby=date | 172 ++ .../plain&sortby=date/index.html | 175 ++ .../plain&hideattic=0&sortby=rev/index.html | 172 ++ .../plain&sortby=date/index.html | 172 ++ .../plain&sortby=author/index.html | 173 ++ .../code/nel/INSTALL?rev=1.16&sortby=date | 173 ++ .../plain&sortby=author/index.html | 190 ++ .../code/nel/INSTALL?rev=1.18&sortby=date | 190 ++ .../plain&sortby=author/index.html | 191 ++ .../plain&sortby=log/index.html | 116 ++ .../plain&hideattic=0&sortby=rev/index.html | 194 ++ .../plain&sortby=author/index.html | 194 ++ .../plain&hideattic=0&sortby=rev/index.html | 194 ++ .../plain&sortby=log/index.html | 194 ++ .../plain&hideattic=0&sortby=rev/index.html | 194 ++ .../plain&sortby=author/index.html | 194 ++ .../plain&hideattic=0&sortby=rev/index.html | 194 ++ .../plain&sortby=author/index.html | 194 ++ .../plain&hideattic=0&sortby=rev/index.html | 208 ++ .../plain&sortby=author/index.html | 208 ++ .../plain&hideattic=0&sortby=rev/index.html | 227 +++ .../plain&sortby=author/index.html | 232 +++ .../plain&sortby=author/index.html | 230 +++ .../code/nel/INSTALL?rev=1.27&sortby=log | 230 +++ .../plain&sortby=date/index.html | 232 +++ .../code/nel/INSTALL?rev=1.29&sortby=rev | 232 +++ .../plain&hideattic=0&sortby=rev/index.html | 117 ++ .../plain&sortby=author/index.html | 117 ++ .../plain&hideattic=0&sortby=rev/index.html | 126 ++ .../plain&sortby=date/index.html | 126 ++ .../plain&hideattic=0&sortby=rev/index.html | 134 ++ .../plain&hideattic=0&sortby=rev/index.html | 142 ++ .../plain&sortby=author/index.html | 142 ++ .../plain&hideattic=0&sortby=rev/index.html | 145 ++ .../plain&sortby=date/index.html | 145 ++ .../plain&sortby=author/index.html | 148 ++ .../plain&sortby=log&only_with_tag=HEAD/index.html | 11 + .../plain&sortby=log/index.html | 83 + .../plain&rev=1.3&sortby=date | 15 + .../plain&rev=1.6&sortby=date | 24 + .../plain&rev=1.9&sortby=date | 23 + .../plain&sortby=date/index.html | 11 + .../plain&sortby=rev/index.html | 15 + .../plain&sortby=date/index.html | 18 + .../plain&sortby=log/index.html | 22 + .../plain&sortby=date/index.html | 23 + .../plain&rev=1.1&sortby=author | 6 + .../plain&rev=1.10&sortby=author | 89 + .../plain&rev=1.6&sortby=rev | 50 + .../plain&hideattic=0&sortby=rev/index.html | 6 + .../plain&hideattic=0&sortby=rev/index.html | 94 + .../plain&sortby=rev/index.html | 94 + .../plain&sortby=author/index.html | 95 + .../plain&sortby=rev&only_with_tag=HEAD/index.html | 100 + .../plain&sortby=author/index.html | 21 + .../plain&sortby=rev/index.html | 26 + .../plain&hideattic=0&sortby=rev/index.html | 32 + .../plain&sortby=rev/index.html | 32 + .../plain&sortby=rev/index.html | 40 + .../plain&hideattic=0&sortby=rev/index.html | 50 + .../plain&sortby=rev/index.html | 71 + .../plain&sortby=rev/index.html | 78 + .../plain&rev=1.1&sortby=rev | 34 + .../plain&sortby=rev/index.html | 34 + .../plain&only_with_tag=MAIN&rev=1.6&sortby=rev | 15 + .../plain&sortby=rev&only_with_tag=MAIN/index.html | 11 + .../code/nel/THANKS?rev=1.1&sortby=author | 11 + .../plain&sortby=log/index.html | 13 + .../plain&sortby=rev&only_with_tag=MAIN/index.html | 13 + .../plain&sortby=log/index.html | 14 + .../plain&sortby=author/index.html | 14 + .../plain&sortby=rev&only_with_tag=MAIN/index.html | 14 + .../~checkout~/code/nel/THANKS?rev=1.4&sortby=rev | 14 + .../plain&sortby=log/index.html | 14 + .../~checkout~/code/nel/THANKS?rev=1.5&sortby=rev | 14 + .../code/nel/acconfig.h?rev=1.1&sortby=date | 13 + .../index.html | 15 + .../code/nel/acconfig.h?rev=1.2&sortby=rev | 15 + .../plain&hideattic=0&rev=1.14&sortby=rev | 1079 +++++++++++ .../plain&rev=1.12&sortby=date | 1049 ++++++++++ .../plain&rev=1.5&sortby=date | 1081 +++++++++++ .../plain&sortby=log/index.html | 1068 +++++++++++ .../code/nel/acinclude.m4?rev=1.1&sortby=author | 1068 +++++++++++ .../plain&sortby=log/index.html | 1049 ++++++++++ .../code/nel/acinclude.m4?rev=1.11&sortby=author | 1049 ++++++++++ .../plain&hideattic=0&sortby=rev/index.html | 1049 ++++++++++ .../plain&sortby=date/index.html | 1076 +++++++++++ .../code/nel/acinclude.m4?rev=1.13&sortby=author | 1076 +++++++++++ .../index.html | 1079 +++++++++++ .../plain&sortby=author/index.html | 1079 +++++++++++ .../plain&hideattic=0&sortby=rev/index.html | 1068 +++++++++++ .../plain&sortby=date/index.html | 1068 +++++++++++ .../plain&hideattic=0&sortby=rev/index.html | 1076 +++++++++++ .../plain&sortby=date/index.html | 1076 +++++++++++ .../plain&hideattic=0&sortby=rev/index.html | 1081 +++++++++++ .../plain&sortby=date/index.html | 1081 +++++++++++ .../code/nel/acinclude.m4?rev=1.4&sortby=author | 1081 +++++++++++ .../plain&sortby=date/index.html | 1054 +++++++++++ .../plain&hideattic=0&sortby=rev/index.html | 1046 ++++++++++ .../plain&sortby=date/index.html | 1046 ++++++++++ .../plain&sortby=log&only_with_tag=MAIN/index.html | 10 + .../plain&sortby=log/index.html | 10 + .../code/nel/bootstrap?rev=1.1&sortby=log | 10 + .../plain&sortby=log&only_with_tag=MAIN/index.html | 12 + .../index.html | 12 + .../plain&sortby=log&only_with_tag=MAIN/index.html | 19 + .../plain&sortby=log/index.html | 18 + .../nel/bootstrap?rev=1.5&hideattic=0&sortby=rev | 18 + .../code/nel/bootstrap?rev=1.5&sortby=author | 18 + .../plain&rev=1.50&sortby=author | 617 ++++++ .../plain&rev=1.51&sortby=date | 624 ++++++ .../plain&rev=1.6&sortby=log | 1 + .../plain&hideattic=0&sortby=rev/index.html | 1 + .../index.html | 1 + .../plain&sortby=author/index.html | 322 ++++ .../plain&sortby=author/index.html | 378 ++++ .../plain&hideattic=0&sortby=rev/index.html | 379 ++++ .../plain&sortby=author/index.html | 379 ++++ .../code/nel/configure.in?rev=1.33&sortby=date | 379 ++++ .../plain&hideattic=0&sortby=rev/index.html | 403 ++++ .../plain&sortby=author/index.html | 403 ++++ .../code/nel/configure.in?rev=1.34&sortby=log | 403 ++++ .../plain&hideattic=0&sortby=rev/index.html | 403 ++++ .../plain&sortby=date/index.html | 403 ++++ .../code/nel/configure.in?rev=1.35&sortby=date | 403 ++++ .../plain&hideattic=0&sortby=rev/index.html | 404 ++++ .../plain&sortby=author/index.html | 447 +++++ .../code/nel/configure.in?rev=1.37&sortby=date | 447 +++++ .../plain&hideattic=0&sortby=rev/index.html | 453 +++++ .../plain&sortby=log/index.html | 453 +++++ .../plain&hideattic=0&sortby=rev/index.html | 454 +++++ .../plain&sortby=author/index.html | 454 +++++ .../code/nel/configure.in?rev=1.39&sortby=log | 454 +++++ .../plain&hideattic=0&sortby=rev/index.html | 1 + .../plain&sortby=author/index.html | 1 + .../code/nel/configure.in?rev=1.4&sortby=date | 1 + .../plain&sortby=author/index.html | 461 +++++ .../plain&hideattic=0&sortby=rev/index.html | 454 +++++ .../plain&sortby=author/index.html | 454 +++++ .../plain&sortby=date/index.html | 458 +++++ .../plain&sortby=author/index.html | 458 +++++ .../plain&hideattic=0&sortby=rev/index.html | 485 +++++ .../plain&sortby=author/index.html | 485 +++++ .../plain&hideattic=0&sortby=rev/index.html | 492 +++++ .../plain&sortby=author/index.html | 492 +++++ .../code/nel/configure.in?rev=1.46&sortby=date | 530 ++++++ .../plain&hideattic=0&sortby=rev/index.html | 632 +++++++ .../plain&sortby=date/index.html | 616 ++++++ .../plain&hideattic=0&sortby=rev/index.html | 1 + .../plain&sortby=author/index.html | 1 + .../code/nel/configure.in?rev=1.50&sortby=date | 617 ++++++ .../plain&hideattic=0&sortby=rev/index.html | 624 ++++++ .../plain&sortby=author/index.html | 627 ++++++ .../plain&hideattic=0&sortby=rev/index.html | 624 ++++++ .../plain&sortby=author/index.html | 624 ++++++ .../plain&sortby=author/index.html | 624 ++++++ .../code/nel/configure.in?rev=1.54&sortby=date | 624 ++++++ .../plain&sortby=author/index.html | 630 ++++++ .../code/nel/configure.in?rev=1.55&sortby=date | 630 ++++++ .../plain&hideattic=0&sortby=rev/index.html | 306 +++ .../plain&sortby=date/index.html | 306 +++ .../code/nel/configure.in?rev=1.56&sortby=log | 306 +++ .../plain&hideattic=0&sortby=rev/index.html | 317 ++++ .../plain&sortby=log/index.html | 317 ++++ .../plain&hideattic=0&sortby=rev/index.html | 317 ++++ .../plain&sortby=date/index.html | 317 ++++ .../plain&sortby=date/index.html | 317 ++++ .../plain&sortby=author/index.html | 328 ++++ .../plain&sortby=author/index.html | 347 ++++ .../code/nel/configure.in?rev=1.62&sortby=date | 347 ++++ .../plain&sortby=date/index.html | 350 ++++ .../plain&sortby=log/index.html | 351 ++++ .../plain&hideattic=0&sortby=rev/index.html | 356 ++++ .../plain&sortby=author/index.html | 356 ++++ .../plain&sortby=author/index.html | 362 ++++ .../plain&hideattic=0&sortby=rev/index.html | 359 ++++ .../plain&sortby=author/index.html | 359 ++++ .../code/nel/configure.in?rev=1.67&sortby=date | 359 ++++ .../plain&sortby=author/index.html | 360 ++++ .../code/nel/configure.in?rev=1.68&sortby=log | 360 ++++ .../plain&sortby=author/index.html | 361 ++++ .../code/nel/configure.in?rev=1.69&sortby=log | 361 ++++ .../plain&hideattic=0&sortby=rev/index.html | 1 + .../plain&sortby=author/index.html | 1 + .../plain&sortby=author/index.html | 364 ++++ .../index.html | 377 ++++ .../plain&sortby=date/index.html | 377 ++++ .../plain&sortby=log/index.html | 1 + .../plain&sortby=date/index.html | Bin 0 -> 5046 bytes .../plain&sortby=date/index.html | 73 + .../plain&sortby=date/index.html | 88 + .../plain&sortby=date/index.html | 88 + .../plain&sortby=date/index.html | 3 + .../plain&sortby=date/index.html | 3 + .../plain&sortby=rev/index.html | 7 + .../code/nel/doc/nel.dox?rev=1.6&sortby=date | 186 ++ .../plain&sortby=date/index.html | 13 + .../plain&sortby=date/index.html | 17 + .../nel/doc/nel_samples.dxt?rev=1.3&sortby=rev | 135 ++ .../code/nel/doc/project.dxt?rev=1.10&sortby=date | 114 ++ .../plain&rev=1.11&sortby=rev | 71 + .../plain&sortby=rev/index.html | 65 + .../plain&sortby=rev/index.html | 64 + .../plain&sortby=rev/index.html | 64 + .../plain&sortby=rev/index.html | 67 + .../plain&sortby=rev/index.html | 65 + .../plain&sortby=date/index.html | 171 ++ .../plain&sortby=date/index.html | 210 ++ .../index.html | 220 +++ .../plain&sortby=author/index.html | 220 +++ .../plain&sortby=author/index.html | 86 + .../plain&sortby=author/index.html | 98 + .../plain&sortby=author/index.html | 86 + .../plain&sortby=log/index.html | 128 ++ .../plain&sortby=date/index.html | 134 ++ .../plain&sortby=author/index.html | 170 ++ .../plain&sortby=date/index.html | 182 ++ .../plain&sortby=log/index.html | 200 ++ .../plain&sortby=author/index.html | 212 +++ .../code/nel/nel.dsw?rev=1.18&sortby=date | 212 +++ .../plain&sortby=author/index.html | 41 + .../plain&sortby=date/index.html | 53 + .../plain&sortby=date/index.html | 59 + .../plain&sortby=date/index.html | 71 + .../plain&sortby=date/index.html | 74 + .../plain&sortby=author/index.html | 74 + .../plain&sortby=author/index.html | 86 + .../plain&sortby=author/index.html | 86 + .../plain&sortby=author/index.html | 60 + .../code/nel/nel.sln?rev=1.1&sortby=author | 60 + .../plain&sortby=author/index.html | 129 ++ .../code/nel/nel.sln?rev=1.2&sortby=date | 129 ++ .../plain&sortby=date/index.html | 8 + .../plain&sortby=rev/index.html | 2000 ++++++++++++++++++++ .../plain&sortby=log/index.html | 9 + .../plain&sortby=date/index.html | 10 + .../plain&sortby=date/index.html | 11 + .../plain&sortby=rev/index.html | 13 + .../plain&sortby=log/index.html | 13 + .../plain&sortby=rev/index.html | 13 + .../plain&sortby=log/index.html | 13 + .../plain&sortby=date/index.html | 15 + .../plain&sortby=rev/index.html | 956 ++++++++++ .../plain&sortby=rev/index.html | 964 ++++++++++ .../plain&sortby=rev/index.html | 1015 ++++++++++ .../plain&sortby=rev/index.html | 1045 ++++++++++ .../plain&sortby=rev/index.html | 1117 +++++++++++ .../plain&sortby=rev/index.html | 1189 ++++++++++++ .../plain&sortby=rev/index.html | 1189 ++++++++++++ .../plain&sortby=rev/index.html | 1222 ++++++++++++ .../plain&sortby=rev/index.html | 1222 ++++++++++++ .../plain&sortby=rev/index.html | 1279 +++++++++++++ .../plain&sortby=rev/index.html | 1323 +++++++++++++ .../plain&sortby=rev/index.html | 916 +++++++++ .../plain&sortby=rev/index.html | 928 +++++++++ .../plain&sortby=rev/index.html | 936 +++++++++ .../plain&sortby=log/index.html | 29 + .../plain&sortby=date/index.html | 843 +++++++++ .../plain&sortby=date/index.html | 868 +++++++++ .../plain&sortby=author/index.html | 93 + .../plain&sortby=author/index.html | 92 + .../plain&sortby=author/index.html | 192 ++ .../plain&sortby=author/index.html | 269 +++ .../plain&sortby=author/index.html | 278 +++ .../plain&sortby=author/index.html | 108 ++ .../plain&sortby=author/index.html | 310 +++ .../plain&sortby=author/index.html | 322 ++++ .../plain&sortby=author/index.html | 371 ++++ .../plain&sortby=author/index.html | 371 ++++ .../plain&sortby=author/index.html | 148 ++ .../plain&sortby=author/index.html | 380 ++++ .../plain&sortby=author/index.html | 404 ++++ .../plain&sortby=author/index.html | 140 ++ .../plain&sortby=author/index.html | 164 ++ .../plain&sortby=rev/index.html | 458 +++++ .../plain/index.html | 7 + cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1 | 89 + .../plain&only_with_tag=MAIN/index.html | 89 + .../plain/index.html | 89 + cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2 | 87 + .../plain&only_with_tag=HEAD/index.html | 87 + .../index.html | 87 + .../plain/index.html | 87 + .../~checkout~/code/nelns/INSTALL?rev=1.1 | 90 + .../plain&rev=1.1&sortby=author | 22 + .../plain&sortby=date/index.html | 24 + .../plain/index.html | 23 + .../plain&sortby=author/index.html | 24 + .../plain/index.html | 23 + .../plain/index.html | 23 + .../plain&sortby=rev/index.html | 21 + .../plain&sortby=date/index.html | 38 + .../plain&sortby=date/index.html | 41 + .../plain/index.html | 6 + .../plain&only_with_tag=MAIN/index.html | 7 + .../plain/index.html | 7 + .../plain&only_with_tag=MAIN/index.html | 7 + .../plain&sortby=rev/index.html | 7 + .../plain/index.html | 17 + .../plain&only_with_tag=MAIN/index.html | 1068 +++++++++++ .../plain/index.html | 1068 +++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.10 | 1049 ++++++++++ .../plain&sortby=author/index.html | 1049 ++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.11 | 1049 ++++++++++ .../plain&only_with_tag=MAIN/index.html | 1049 ++++++++++ .../plain/index.html | 1049 ++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.12 | 1049 ++++++++++ .../plain/index.html | 1049 ++++++++++ .../plain&only_with_tag=MAIN/index.html | 1076 +++++++++++ .../plain&sortby=date/index.html | 1076 +++++++++++ .../plain&only_with_tag=MAIN/index.html | 1079 +++++++++++ .../plain&only_with_tag=georges_v2/index.html | 1079 +++++++++++ .../plain/index.html | 1079 +++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.2 | 1068 +++++++++++ .../plain&only_with_tag=MAIN/index.html | 1068 +++++++++++ .../plain&sortby=author/index.html | 1068 +++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.3 | 1076 +++++++++++ .../plain&sortby=rev/index.html | 1076 +++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.4 | 1081 +++++++++++ .../plain&only_with_tag=MAIN/index.html | 1081 +++++++++++ .../plain/index.html | 1081 +++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.5 | 1081 +++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.6 | 1086 +++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.7 | 1054 +++++++++++ .../plain/index.html | 1054 +++++++++++ .../plain/index.html | 1059 +++++++++++ .../~checkout~/code/nelns/acinclude.m4?rev=1.9 | 1046 ++++++++++ .../plain&sortby=date/index.html | 1046 ++++++++++ .../plain/index.html | 43 + .../plain/index.html | 14 + .../plain&sortby=date/index.html | 15 + .../plain/index.html | 17 + .../admin_executor_service/Makefile.am?rev=1.6 | 15 + .../plain&sortby=date/index.html | 15 + .../plain&sortby=date/index.html | 16 + .../plain/index.html | 10 + .../plain/index.html | 8 + .../plain/index.html | 10 + .../admin_executor_service.cfg?rev=1.7 | 8 + .../plain&rev=1.12 | 518 +++++ .../plain/index.html | 181 ++ .../plain/index.html | 505 +++++ .../plain/index.html | 530 ++++++ .../plain/index.html | 518 +++++ .../plain&hideattic=0/index.html | 54 + .../plain&hideattic=0/index.html | 132 ++ .../plain&hideattic=0/index.html | 228 +++ .../code/nelns/bootstrap?rev=1.1&sortby=author | 11 + .../plain/index.html | 18 + .../code/nelns/bootstrap?rev=1.2&sortby=date | 18 + .../nelns/bootstrap?rev=1.3&only_with_tag=MAIN | 23 + .../configure.in?content-type=text/plain&rev=1.1 | 289 +++ .../configure.in?content-type=text/plain&rev=1.14 | 156 ++ .../plain/index.html | 153 ++ .../plain/index.html | 221 +++ .../plain/index.html | 258 +++ .../plain/index.html | 258 +++ .../plain/index.html | 256 +++ .../plain/index.html | 110 ++ .../plain/index.html | 182 ++ .../plain/index.html | 221 +++ .../plain/index.html | 200 ++ .../plain/index.html | 218 +++ .../plain/index.html | 200 ++ .../plain/index.html | 221 +++ .../~checkout~/code/snowballs/AUTHORS?rev=1.1 | 7 + .../~checkout~/code/snowballs/COPYING?rev=1.1 | 340 ++++ .../plain/index.html | 17 + .../plain/index.html | 20 + .../~checkout~/code/snowballs/THANKS?rev=1.1 | 9 + .../bootstrap?content-type=text/plain&rev=1.1 | 11 + .../~checkout~/code/snowballs/configure.in?rev=1.1 | 264 +++ .../plain/index.html | 7 + .../plain/index.html | 340 ++++ .../plain/index.html | 90 + .../~checkout~/code/snowballs2/INSTALL?rev=1.4 | 116 ++ .../plain/index.html | 35 + .../plain/index.html | 6 + .../README?content-type=text/plain&rev=1.1 | 142 ++ .../plain/index.html | 140 ++ .../plain/index.html | 3 + .../~checkout~/code/snowballs2/acconfig.h?rev=1.1 | 12 + .../plain/index.html | 1049 ++++++++++ .../plain/index.html | 1049 ++++++++++ .../plain/index.html | 1049 ++++++++++ .../plain/index.html | 1076 +++++++++++ .../code/snowballs2/acinclude.m4?rev=1.14 | 1079 +++++++++++ .../plain/index.html | 1054 +++++++++++ .../plain/index.html | 1059 +++++++++++ .../plain/index.html | 186 ++ .../plain/index.html | 204 ++ .../plain/index.html | 340 ++++ .../plain/index.html | 165 ++ .../plain/index.html | 95 + .../plain/index.html | 110 ++ .../plain/index.html | 113 ++ .../plain/index.html | 155 ++ .../code/snowballs2/snowballs2.dsw?rev=1.6 | 209 ++ .../plain/index.html | 145 ++ .../plain/index.html | 144 ++ 494 files changed, 185468 insertions(+) create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/checkoutlist?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/commitinfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/config?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/cvsignore?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.1&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.1&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.2&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.2&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.3&content-type=text/plain&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.3&sortby=author&only_with_tag=MAIN create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/editinfo?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/loginfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/modules?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/notify?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/rcsinfo?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/taginfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/CVSROOT/verifymsg?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&only_with_tag=MAIN&rev=1.13&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&rev=1.2&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&rev=1.4 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.13 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.13&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain&sortby=log&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&only_with_tag=HEAD create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.2 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.4 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.4&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.6 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.6&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.7&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.7&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.cpp?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.cpp?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.h?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/bootstrap?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/bootstrap?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.3&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.4&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.5&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.6&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.8&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.9&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/english.txt?rev=1.2&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/english.uxt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.txt?rev=1.2&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.uxt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.uxt?rev=1.5&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/fun.txt?rev=1.1&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/german.txt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/Attic/move_listener.h?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/client/doc/Attic/client.dox?rev=1.1&content-type=text/plain&hideattic=0/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.1&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.2&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.3&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/COPYING?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.12&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.17&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.6&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.1&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.1&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.10&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.10&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.11&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.12&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.13&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.13&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.14&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.15&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.15&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.16&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.16&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.18&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.18&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.19&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.2&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.20&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.20&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.21&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.21&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.22&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.22&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.23&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.23&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.24&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.24&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.25&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.26&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.27&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.27&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.28&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.29&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.3&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.3&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.5&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.5&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.6&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.7&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.7&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.8&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.8&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.9&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Jamfile?rev=1.1&content-type=text/plain&sortby=log&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Jamrules?rev=1.1&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.3&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.6&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.9&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.1&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.2&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.4&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.5&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.8&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.1&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.10&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.6&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.1&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.11&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.11&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.12&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.13&content-type=text/plain&sortby=rev&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.2&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.3&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.4&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.5&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.6&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.8&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.9&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/README?content-type=text/plain&rev=1.1&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/README?rev=1.2&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?content-type=text/plain&only_with_tag=MAIN&rev=1.6&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.1&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.1&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.2&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.2&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.3&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.5&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.5&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.1&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.2&content-type=text/plain&sortby=date&only_with_tag=georges_v2/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.2&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&hideattic=0&rev=1.14&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&rev=1.12&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&rev=1.5&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.1&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.1&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.10&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.11&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.12&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.13&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.13&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author&only_with_tag=georges_v2/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.2&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.2&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.3&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.3&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.7&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.9&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.9&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=nel_0_3/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.3&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.4&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.5&hideattic=0&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.5&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.50&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.51&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.6&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.10&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.17&content-type=text/plain&sortby=log&only_with_tag=proto_0_1/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.31&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.32&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.36&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.37&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.37&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.38&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.38&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.40&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.41&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.41&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.42&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.43&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.44&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.44&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.45&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.45&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.46&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.48&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.49&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.5&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.5&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.50&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.51&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.52&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.53&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.53&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.54&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.54&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.55&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.55&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.57&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.57&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.58&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.58&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.59&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.60&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.62&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.62&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.63&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.64&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.65&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.65&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.66&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.68&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.68&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.69&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.69&sortby=log create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.7&content-type=text/plain&hideattic=0&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.7&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.70&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.71&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.71&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.8&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/architect.png?rev=1.1&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.2&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.5&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.6&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.2&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.3&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.6&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dox?rev=1.6&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dxt?rev=1.3&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dxt?rev=1.5&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel_samples.dxt?rev=1.3&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/doc/project.dxt?rev=1.10&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?content-type=text/plain&rev=1.11&sortby=rev create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.2&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.3&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.5&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.7&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.9&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.1&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.2&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&content-type=text/plain&sortby=author&only_with_tag=georges_v2/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.10&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.11&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.12&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.13&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.14&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.15&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.16&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.17&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.18&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.18&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.2&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.3&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.4&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.5&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.6&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.7&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.8&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.9&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.1&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.1&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.2&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.2&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/samples/Jamfile?rev=1.1&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/3d.vcproj?rev=1.2&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/Jamfile?rev=1.1&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.1&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.2&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.3&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.4&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.5&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.6&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.12&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.16&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.18&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.21&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.24&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.26&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.27&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.35&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.36&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.40&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.42&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.5&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.7&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.9&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsw?rev=1.1&content-type=text/plain&sortby=log/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/misc.vcproj?rev=1.1&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/misc.vcproj?rev=1.2&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/nel.dsp?rev=1.1&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.1&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.10&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.14&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.18&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.2&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.21&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.23&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.26&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.27&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.3&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.30&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.33&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.4&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.6&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.vcproj?rev=1.2&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/AUTHORS?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain&only_with_tag=HEAD/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain&sortby=date&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/INSTALL?rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?content-type=text/plain&rev=1.1&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.2&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.3&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.3&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.4&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.6&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.8&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/NEWS?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.2&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.2&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acconfig.h?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.10 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.10&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.12 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.12&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.13&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.13&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain&only_with_tag=georges_v2/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2&content-type=text/plain&sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.3 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.3&content-type=text/plain&sortby=rev/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4&content-type=text/plain&only_with_tag=MAIN/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.5 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.6 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.7 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.7&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.8&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.9 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.9&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Attic/sysload.h?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.3&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.4&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.5&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.6 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.6&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.5&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.6&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.7 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?content-type=text/plain&rev=1.12 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.10&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.13&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.14&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/py_object_trans.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/server.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.1&sortby=author create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.2&sortby=date create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.3&only_with_tag=MAIN create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?content-type=text/plain&rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?content-type=text/plain&rev=1.14 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.15&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.4&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.5&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.6&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.8&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.9&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.3&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.4&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.5&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.6&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs/AUTHORS?rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs/COPYING?rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs/Makefile.am?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs/NEWS?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs/THANKS?rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs/bootstrap?content-type=text/plain&rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/AUTHORS?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/COPYING?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/INSTALL?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/INSTALL?rev=1.4 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/Makefile.am?rev=1.4&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/NEWS?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/README?content-type=text/plain&rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/README?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/THANKS?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/acconfig.h?rev=1.1 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.10&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.11&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.12&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.13&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.14 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.7&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.8&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.11&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.15&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.6&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.9&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.2&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.3&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.4&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.5&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.6 create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.sln?rev=1.1&content-type=text/plain/index.html create mode 100644 cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.sln?rev=1.2&content-type=text/plain/index.html (limited to 'cvs/cvsweb.cgi/~checkout~') diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/checkoutlist?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/checkoutlist?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..b04b3501 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/checkoutlist?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html @@ -0,0 +1,13 @@ +# The "checkoutlist" file is used to support additional version controlled +# administrative files in $CVSROOT/CVSROOT, such as template files. +# +# The first entry on a line is a filename which will be checked out from +# the corresponding RCS file in the $CVSROOT/CVSROOT directory. +# The remainder of the line is an error message to use if the file cannot +# be checked out. +# +# File format: +# +# [] +# +# comment lines begin with '#' diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/commitinfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/commitinfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..b19e7b7a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/commitinfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html @@ -0,0 +1,15 @@ +# The "commitinfo" file is used to control pre-commit checks. +# The filter on the right is invoked with the repository and a list +# of files to check. A non-zero exit of the filter program will +# cause the commit to be aborted. +# +# The first entry on a line is a regular expression which is tested +# against the directory that the change is being committed to, relative +# to the $CVSROOT. For the first match that is found, then the remainder +# of the line is the name of the filter to run. +# +# If the repository name does not match any of the regular expressions in this +# file, the "DEFAULT" line is used, if it is specified. +# +# If the name "ALL" appears as a regular expression it is always used +# in addition to the first matching regex or "DEFAULT". diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/config?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/config?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..8069cad5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/config?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html @@ -0,0 +1,11 @@ +# Set this to "no" if pserver shouldn't check system users/passwords +#SystemAuth=no + +# Set `PreservePermissions' to `yes' to save file status information +# in the repository. +#PreservePermissions=no + +# Set `TopLevelAdmin' to `yes' to create a CVS directory at the top +# level of the new working directory when using the `cvs checkout' +# command. +#TopLevelAdmin=no diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvsignore?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvsignore?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..4899c5fd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvsignore?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,12 @@ +RCS SCCS CVS CVS.adm +RCSLOG cvslog.* +tags TAGS +.make.state .nse_depinfo +*~ #* .#* ,* _$* *$ +*.old *.bak *.BAK *.orig *.rej .del-* +*.olb *.o *.obj +*.gz *.tar *.tgz *.Z *.elc *.ln +core *.core + +*.001 *.bsc *.hhc *.hhk *.idb *.log +*.opt *.pch *.pdb *.plg *.sbr diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.1&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.1&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..0accaf1b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.1&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html @@ -0,0 +1,23 @@ +# This file affects handling of files based on their names. +# +# The -t/-f options allow one to treat directories of files +# as a single file, or to transform a file in other ways on +# its way in and out of CVS. +# +# The -m option specifies whether CVS attempts to merge files. +# +# The -k option specifies keyword expansion (e.g. -kb for binary). +# +# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers) +# +# wildcard [option value][option value]... +# +# where option is one of +# -f from cvs filter value: path to filter +# -t to cvs filter value: path to filter +# -m update methodology value: MERGE or COPY +# -k expansion mode value: b, o, kkv, &c +# +# and value is a single-quote delimited value. +# For example: +#*.gif -k 'b' diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.1&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.1&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..0accaf1b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.1&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,23 @@ +# This file affects handling of files based on their names. +# +# The -t/-f options allow one to treat directories of files +# as a single file, or to transform a file in other ways on +# its way in and out of CVS. +# +# The -m option specifies whether CVS attempts to merge files. +# +# The -k option specifies keyword expansion (e.g. -kb for binary). +# +# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers) +# +# wildcard [option value][option value]... +# +# where option is one of +# -f from cvs filter value: path to filter +# -t to cvs filter value: path to filter +# -m update methodology value: MERGE or COPY +# -k expansion mode value: b, o, kkv, &c +# +# and value is a single-quote delimited value. +# For example: +#*.gif -k 'b' diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.2&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.2&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..77b6dd2e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.2&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html @@ -0,0 +1,44 @@ +# This file affects handling of files based on their names. +# +# The -t/-f options allow one to treat directories of files +# as a single file, or to transform a file in other ways on +# its way in and out of CVS. +# +# The -m option specifies whether CVS attempts to merge files. +# +# The -k option specifies keyword expansion (e.g. -kb for binary). +# +# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers) +# +# wildcard [option value][option value]... +# +# where option is one of +# -f from cvs filter value: path to filter +# -t to cvs filter value: path to filter +# -m update methodology value: MERGE or COPY +# -k expansion mode value: b, o, kkv, &c +# +# and value is a single-quote delimited value. +# For example: +#*.gif -k 'b' + +*.aps -k 'b' +*.chm -k 'b' +*.dll -k 'b' +*.doc -k 'b' +*.dot -k 'b' +*.exe -k 'b' +*.gif -k 'b' +*.ico -k 'b' +*.lib -k 'b' +*.lnk -k 'b' +*.mdl -k 'b' +*.mpp -k 'b' +*.pcx -k 'b' +*.res -k 'b' +*.suo -k 'b' +*.tpr -k 'b' +*.vsd -k 'b' +*.xls -k 'b' +*.zip -k 'b' + diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.2&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.2&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..77b6dd2e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.2&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,44 @@ +# This file affects handling of files based on their names. +# +# The -t/-f options allow one to treat directories of files +# as a single file, or to transform a file in other ways on +# its way in and out of CVS. +# +# The -m option specifies whether CVS attempts to merge files. +# +# The -k option specifies keyword expansion (e.g. -kb for binary). +# +# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers) +# +# wildcard [option value][option value]... +# +# where option is one of +# -f from cvs filter value: path to filter +# -t to cvs filter value: path to filter +# -m update methodology value: MERGE or COPY +# -k expansion mode value: b, o, kkv, &c +# +# and value is a single-quote delimited value. +# For example: +#*.gif -k 'b' + +*.aps -k 'b' +*.chm -k 'b' +*.dll -k 'b' +*.doc -k 'b' +*.dot -k 'b' +*.exe -k 'b' +*.gif -k 'b' +*.ico -k 'b' +*.lib -k 'b' +*.lnk -k 'b' +*.mdl -k 'b' +*.mpp -k 'b' +*.pcx -k 'b' +*.res -k 'b' +*.suo -k 'b' +*.tpr -k 'b' +*.vsd -k 'b' +*.xls -k 'b' +*.zip -k 'b' + diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.3&content-type=text/plain&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.3&content-type=text/plain&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..1b4a54c1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.3&content-type=text/plain&only_with_tag=HEAD/index.html @@ -0,0 +1,50 @@ +# This file affects handling of files based on their names. +# +# The -t/-f options allow one to treat directories of files +# as a single file, or to transform a file in other ways on +# its way in and out of CVS. +# +# The -m option specifies whether CVS attempts to merge files. +# +# The -k option specifies keyword expansion (e.g. -kb for binary). +# +# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers) +# +# wildcard [option value][option value]... +# +# where option is one of +# -f from cvs filter value: path to filter +# -t to cvs filter value: path to filter +# -m update methodology value: MERGE or COPY +# -k expansion mode value: b, o, kkv, &c +# +# and value is a single-quote delimited value. +# For example: +#*.gif -k 'b' + +*.aps -k 'b' +*.chm -k 'b' +*.dll -k 'b' +*.doc -k 'b' +*.dot -k 'b' +*.exe -k 'b' +*.gif -k 'b' +*.ico -k 'b' +*.lib -k 'b' +*.lnk -k 'b' +*.mdl -k 'b' +*.mpp -k 'b' +*.pcx -k 'b' +*.res -k 'b' +*.suo -k 'b' +*.tpr -k 'b' +*.vsd -k 'b' +*.xls -k 'b' +*.zip -k 'b' +*.ico -k 'b' +*.bmp -k 'b' +*.tga -k 'b' +*.jpg -k 'b' +*.png -k 'b' +*.dds -k 'b' +*.cur -k 'b' diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.3&sortby=author&only_with_tag=MAIN b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.3&sortby=author&only_with_tag=MAIN new file mode 100644 index 00000000..1b4a54c1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/cvswrappers?rev=1.3&sortby=author&only_with_tag=MAIN @@ -0,0 +1,50 @@ +# This file affects handling of files based on their names. +# +# The -t/-f options allow one to treat directories of files +# as a single file, or to transform a file in other ways on +# its way in and out of CVS. +# +# The -m option specifies whether CVS attempts to merge files. +# +# The -k option specifies keyword expansion (e.g. -kb for binary). +# +# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers) +# +# wildcard [option value][option value]... +# +# where option is one of +# -f from cvs filter value: path to filter +# -t to cvs filter value: path to filter +# -m update methodology value: MERGE or COPY +# -k expansion mode value: b, o, kkv, &c +# +# and value is a single-quote delimited value. +# For example: +#*.gif -k 'b' + +*.aps -k 'b' +*.chm -k 'b' +*.dll -k 'b' +*.doc -k 'b' +*.dot -k 'b' +*.exe -k 'b' +*.gif -k 'b' +*.ico -k 'b' +*.lib -k 'b' +*.lnk -k 'b' +*.mdl -k 'b' +*.mpp -k 'b' +*.pcx -k 'b' +*.res -k 'b' +*.suo -k 'b' +*.tpr -k 'b' +*.vsd -k 'b' +*.xls -k 'b' +*.zip -k 'b' +*.ico -k 'b' +*.bmp -k 'b' +*.tga -k 'b' +*.jpg -k 'b' +*.png -k 'b' +*.dds -k 'b' +*.cur -k 'b' diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/editinfo?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/editinfo?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..d78886c1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/editinfo?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html @@ -0,0 +1,21 @@ +# The "editinfo" file is used to allow verification of logging +# information. It works best when a template (as specified in the +# rcsinfo file) is provided for the logging procedure. Given a +# template with locations for, a bug-id number, a list of people who +# reviewed the code before it can be checked in, and an external +# process to catalog the differences that were code reviewed, the +# following test can be applied to the code: +# +# Making sure that the entered bug-id number is correct. +# Validating that the code that was reviewed is indeed the code being +# checked in (using the bug-id number or a seperate review +# number to identify this particular code set.). +# +# If any of the above test failed, then the commit would be aborted. +# +# Actions such as mailing a copy of the report to each reviewer are +# better handled by an entry in the loginfo file. +# +# One thing that should be noted is the the ALL keyword is not +# supported. There can be only one entry that matches a given +# repository. diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/loginfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/loginfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..5a59f0a5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/loginfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html @@ -0,0 +1,26 @@ +# The "loginfo" file controls where "cvs commit" log information +# is sent. The first entry on a line is a regular expression which must match +# the directory that the change is being made to, relative to the +# $CVSROOT. If a match is found, then the remainder of the line is a filter +# program that should expect log information on its standard input. +# +# If the repository name does not match any of the regular expressions in this +# file, the "DEFAULT" line is used, if it is specified. +# +# If the name ALL appears as a regular expression it is always used +# in addition to the first matching regex or DEFAULT. +# +# You may specify a format string as part of the +# filter. The string is composed of a `%' followed +# by a single format character, or followed by a set of format +# characters surrounded by `{' and `}' as separators. The format +# characters are: +# +# s = file name +# V = old version number (pre-checkin) +# v = new version number (post-checkin) +# +# For example: +#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog +# or +#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/modules?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/modules?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..cb9e9efc --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/modules?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=HEAD/index.html @@ -0,0 +1,26 @@ +# Three different line formats are valid: +# key -a aliases... +# key [options] directory +# key [options] directory files... +# +# Where "options" are composed of: +# -i prog Run "prog" on "cvs commit" from top-level of module. +# -o prog Run "prog" on "cvs checkout" of module. +# -e prog Run "prog" on "cvs export" of module. +# -t prog Run "prog" on "cvs rtag" of module. +# -u prog Run "prog" on "cvs update" of module. +# -d dir Place module in directory "dir" instead of module name. +# -l Top-level directory only -- do not recurse. +# +# NOTE: If you change any of the "Run" options above, you'll have to +# release and re-checkout any working directories of these modules. +# +# And "directory" is a path to a directory relative to $CVSROOT. +# +# The "-a" option specifies an alias. An alias is interpreted as if +# everything on the right of the "-a" had been typed on the command line. +# +# You can encode a module within a module by using the special '&' +# character to interpose another module into the current module. This +# can be useful for creating a module that consists of many directories +# spread out over the entire source repository. diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/notify?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/notify?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..34f0bc28 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/notify?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html @@ -0,0 +1,12 @@ +# The "notify" file controls where notifications from watches set by +# "cvs watch add" or "cvs edit" are sent. The first entry on a line is +# a regular expression which is tested against the directory that the +# change is being made to, relative to the $CVSROOT. If it matches, +# then the remainder of the line is a filter program that should contain +# one occurrence of %s for the user to notify, and information on its +# standard input. +# +# "ALL" or "DEFAULT" can be used in place of the regular expression. +# +# For example: +#ALL mail %s -s "CVS notification" diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/rcsinfo?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/rcsinfo?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..49e59f4d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/rcsinfo?rev=1.1&content-type=text/plain&only_with_tag=HEAD/index.html @@ -0,0 +1,13 @@ +# The "rcsinfo" file is used to control templates with which the editor +# is invoked on commit and import. +# +# The first entry on a line is a regular expression which is tested +# against the directory that the change is being made to, relative to the +# $CVSROOT. For the first match that is found, then the remainder of the +# line is the name of the file that contains the template. +# +# If the repository name does not match any of the regular expressions in this +# file, the "DEFAULT" line is used, if it is specified. +# +# If the name "ALL" appears as a regular expression it is always used +# in addition to the first matching regex or "DEFAULT". diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/taginfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/taginfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..274a46dd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/taginfo?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=MAIN/index.html @@ -0,0 +1,20 @@ +# The "taginfo" file is used to control pre-tag checks. +# The filter on the right is invoked with the following arguments: +# +# $1 -- tagname +# $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d +# $3 -- repository +# $4-> file revision [file revision ...] +# +# A non-zero exit of the filter program will cause the tag to be aborted. +# +# The first entry on a line is a regular expression which is tested +# against the directory that the change is being committed to, relative +# to the $CVSROOT. For the first match that is found, then the remainder +# of the line is the name of the filter to run. +# +# If the repository name does not match any of the regular expressions in this +# file, the "DEFAULT" line is used, if it is specified. +# +# If the name "ALL" appears as a regular expression it is always used +# in addition to the first matching regex or "DEFAULT". diff --git a/cvs/cvsweb.cgi/~checkout~/CVSROOT/verifymsg?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/CVSROOT/verifymsg?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..86f747ce --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/CVSROOT/verifymsg?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=HEAD/index.html @@ -0,0 +1,21 @@ +# The "verifymsg" file is used to allow verification of logging +# information. It works best when a template (as specified in the +# rcsinfo file) is provided for the logging procedure. Given a +# template with locations for, a bug-id number, a list of people who +# reviewed the code before it can be checked in, and an external +# process to catalog the differences that were code reviewed, the +# following test can be applied to the code: +# +# Making sure that the entered bug-id number is correct. +# Validating that the code that was reviewed is indeed the code being +# checked in (using the bug-id number or a seperate review +# number to identify this particular code set.). +# +# If any of the above test failed, then the commit would be aborted. +# +# Actions such as mailing a copy of the report to each reviewer are +# better handled by an entry in the loginfo file. +# +# One thing that should be noted is the the ALL keyword is not +# supported. There can be only one entry that matches a given +# repository. diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&only_with_tag=MAIN&rev=1.13&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&only_with_tag=MAIN&rev=1.13&sortby=log new file mode 100644 index 00000000..d54d6b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&only_with_tag=MAIN&rev=1.13&sortby=log @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.13 2002/04/16 12:01:39 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&rev=1.2&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&rev=1.2&sortby=author new file mode 100644 index 00000000..deb5def1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&rev=1.2&sortby=author @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.2 2002/01/08 10:09:35 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&rev=1.4 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&rev=1.4 new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?content-type=text/plain&rev=1.4 @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..84166845 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.1&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.1 2002/01/07 16:09:52 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +dnl NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..84166845 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.1 2002/01/07 16:09:52 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +dnl NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10 new file mode 100644 index 00000000..cd93eb5c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10 @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.10 2002/03/21 10:54:37 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..cd93eb5c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.10 2002/03/21 10:54:37 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10&content-type=text/plain/index.html new file mode 100644 index 00000000..cd93eb5c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.10&content-type=text/plain/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.10 2002/03/21 10:54:37 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..49d5b40b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.11 2002/03/26 14:37:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&content-type=text/plain/index.html new file mode 100644 index 00000000..49d5b40b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&content-type=text/plain/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.11 2002/03/26 14:37:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&sortby=rev new file mode 100644 index 00000000..49d5b40b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.11&sortby=rev @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.11 2002/03/26 14:37:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..9184a376 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.12 2002/03/29 10:19:10 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&content-type=text/plain/index.html new file mode 100644 index 00000000..9184a376 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&content-type=text/plain/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.12 2002/03/29 10:19:10 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&sortby=author new file mode 100644 index 00000000..9184a376 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.12&sortby=author @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.12 2002/03/29 10:19:10 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.13 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.13 new file mode 100644 index 00000000..d54d6b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.13 @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.13 2002/04/16 12:01:39 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.13&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.13&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..d54d6b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.13&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.13 2002/04/16 12:01:39 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain&sortby=log&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain&sortby=log&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain&sortby=log&only_with_tag=HEAD/index.html @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain/index.html new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&content-type=text/plain/index.html @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&only_with_tag=HEAD b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&only_with_tag=HEAD new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&only_with_tag=HEAD @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&sortby=log new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.14&sortby=log @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.2 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.2 new file mode 100644 index 00000000..deb5def1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.2 @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.2 2002/01/08 10:09:35 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..deb5def1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.2 2002/01/08 10:09:35 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3 new file mode 100644 index 00000000..adad0b43 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3 @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.3 2002/01/10 14:33:19 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..adad0b43 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.3 2002/01/10 14:33:19 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3&content-type=text/plain/index.html new file mode 100644 index 00000000..adad0b43 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.3&content-type=text/plain/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.3 2002/01/10 14:33:19 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.4 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.4 new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.4 @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.4&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.4&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.4&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5 new file mode 100644 index 00000000..68c8395e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5 @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.5 2002/01/28 14:40:26 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIBS="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIBS="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..68c8395e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.5 2002/01/28 14:40:26 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIBS="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIBS="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5&content-type=text/plain/index.html new file mode 100644 index 00000000..68c8395e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.5&content-type=text/plain/index.html @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.5 2002/01/28 14:40:26 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIBS="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIBS="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.6 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.6 new file mode 100644 index 00000000..cab27813 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.6 @@ -0,0 +1,1086 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.6 2002/01/28 14:59:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIBS="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIBS="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.6&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.6&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..cab27813 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.6&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1086 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.6 2002/01/28 14:59:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIBS="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIBS="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.7&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.7&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..a7fcf13f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.7&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1054 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.7 2002/01/29 13:21:42 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.7&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.7&content-type=text/plain/index.html new file mode 100644 index 00000000..a7fcf13f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.7&content-type=text/plain/index.html @@ -0,0 +1,1054 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.7 2002/01/29 13:21:42 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8 new file mode 100644 index 00000000..7d877590 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8 @@ -0,0 +1,1059 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.8 2002/02/18 12:58:38 lecroart Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..7d877590 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1059 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.8 2002/02/18 12:58:38 lecroart Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8&content-type=text/plain/index.html new file mode 100644 index 00000000..7d877590 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.8&content-type=text/plain/index.html @@ -0,0 +1,1059 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.8 2002/02/18 12:58:38 lecroart Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9 b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9 new file mode 100644 index 00000000..999d4822 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9 @@ -0,0 +1,1046 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.9 2002/03/19 17:42:48 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..999d4822 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9&content-type=text/plain&sortby=author&only_with_tag=MAIN/index.html @@ -0,0 +1,1046 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.9 2002/03/19 17:42:48 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9&content-type=text/plain/index.html new file mode 100644 index 00000000..999d4822 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/acinclude.m4?rev=1.9&content-type=text/plain/index.html @@ -0,0 +1,1046 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.9 2002/03/19 17:42:48 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.cpp?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.cpp?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..2176da62 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.cpp?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,66 @@ +/** \file blank_interface.cpp + * Language interface + * + * $Id: blank_interface.cpp,v 1.1 2000/11/23 15:36:14 coutelas Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NEL. + * NEVRAX NEL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + + * NEVRAX NEL is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with NEVRAX NEL; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#include "nel/misc/i18n.h" +#include "blank_interface.h" + + +using namespace NL3D; +using namespace NLMISC; + + + + + + +/****************************************************************\ + init() +\****************************************************************/ +void CBlankInterface::init(NL3D::CScene * scene, uint w, uint h) +{ + _Scene = scene; + + _FontManager.setMaxMemory(2000000); + _EventServer.addEmitter(_Scene->getDriver()->getEventEmitter()); + + CDisplayDescriptor displayDesc; + displayDesc.ResX = w; + displayDesc.ResY = h; + ScreenWidth = w; + ScreenHeight = h; + +} + + + + +/****************************************************************\ + release() +\****************************************************************/ +void CBlankInterface::release() +{ + _EventServer.removeListener(EventCharId, _Listener); +} + diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.cpp?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.cpp?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..eca156e3 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.cpp?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,27 @@ +/** \file blank_interface.cpp + * Language interface + * + * $Id: blank_interface.cpp,v 1.2 2000/11/24 14:17:35 coutelas Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NEL. + * NEVRAX NEL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + + * NEVRAX NEL is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with NEVRAX NEL; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#include "blank_interface.h" + diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.h?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.h?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..bb8cab84 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/blank_interface.h?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,95 @@ +/** \file blank_interface.h + * + * + * $Id: blank_interface.h,v 1.2 2000/11/23 16:41:20 lecroart Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NEL. + * NEVRAX NEL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + + * NEVRAX NEL is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with NEVRAX NEL; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#ifndef NL_BLANK_INTERFACE_H +#define NL_BLANK_INTERFACE_H + +#include +#include "nel/misc/types_nl.h" +#include "nel/misc/event_emitter.h" +#include "nel/misc/event_listener.h" +#include "nel/3d/scene_ut.h" +#include "nel/3d/font_manager.h" +#include "nel/3d/computed_string.h" + + + + +/** + * Class CBlankInterface + * \author Stephane Coutelas + * \author Nevrax France + * \date 2000 + */ +class CBlankInterface +{ +protected: + /// screen width + uint ScreenWidth; + + /// screen height + uint ScreenHeight; + + /// font manager providing font textures + NL3D::CFontManager _FontManager; + + /// font generator + NL3D::CFontGenerator _FontGenerator; + + /// scene (provides driver) + NL3D::CScene * _Scene; + + /// event manager + NLMISC::CEventServer _EventServer; + + /// event listener + NLMISC::IEventListener * _Listener; + + void release(); + +public: + + /// default constructor + CBlankInterface():_FontGenerator("c:/winnt/fonts/arialuni.ttf") + { + ScreenWidth = 0; + ScreenHeight = 0; + } + + /// init font manager, event server,... + virtual void init(NL3D::CScene * scene, uint w, uint h); + + /// destructor + virtual ~CBlankInterface() { release(); } + +}; + + + + + +#endif // NL_BLANK_INTERFACE_H + +/* End of blank_interface.h */ diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/bootstrap?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/bootstrap?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..e8e3c67d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/bootstrap?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,12 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +aclocal \ +&& libtoolize --force --copy \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/bootstrap?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/bootstrap?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..666c7d38 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/bootstrap?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,11 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..b61f812a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,27 @@ + +#include +#include + +#include "nel/misc/types_nl.h" +#include "login_interface.h" + + + +LogUserId login() +{ + CLoginInterface logscreen; + logscreen.init(800,600); + return logscreen.log(); +} + + +/****************************************************************\ + MAIN +\****************************************************************/ +void main() +{ + LogUserId id = login(); + // connect + // list + +} \ No newline at end of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..ee0ac1ec --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,82 @@ + +#include +#include + + +#include +#include "nel/3d/driver.h" +#include "nel/misc/types_nl.h" +#include "login_interface.h" +#include "shards_list_interface.h" + + +CLogUserId login(NL3D::CScene * scene, uint w, uint h) +{ + CLoginInterface logscreen; + logscreen.init(scene, w, h); + return logscreen.log(); +} + +uint chooseShard(NL3D::CScene * scene, uint w, uint h, + const std::vector& shards) +{ + CShardsListInterface shardListScreen; + shardListScreen.init(scene, w, h, shards); + return shardListScreen.choose(); +} + + + +std::vector connect(CLogUserId id) //TEMP !! +{ + std::vector shards; + shards.reserve(10); + ucstring ucs; + ucs+='s';ucs+='h';ucs+='a';ucs+='r';ucs+='d';ucs+=' '; + ucstring ucsa = ucs; ucsa += 'A'; + shards.push_back(ucsa); + ucstring ucsb = ucs; ucsb += 'B'; + shards.push_back(ucsb); + ucstring ucsc = ucs; ucsc += 'C'; + shards.push_back(ucsc); + ucstring ucsd = ucs; ucsd += 'D'; + shards.push_back(ucsd); + ucstring ucse = ucs; ucse += 'E'; + shards.push_back(ucse); + ucstring ucsf = ucs; ucsf += 'F'; + shards.push_back(ucsf); + ucstring ucsg = ucs; ucsg += 'G'; + shards.push_back(ucsg); + return shards; +} + + + + + +/****************************************************************\ + MAIN +\****************************************************************/ +void main() +{ + // init scene + uint w = 800; + uint h = 600; + uint bpp = 32; + bool windowed = true; + NL3D::CScene scene; + NL3D::CSceneUt::init3d(scene, w, h, bpp, windowed); + + + // user login session + CLogUserId id = login(&scene, w, h); + + // connection // TEMP !! + std::vector shards = connect(id); + + // shard choice + uint shardIndex = chooseShard(&scene, w, h, shards); + + // release scene + NL3D::CSceneUt::release3d(scene); +} \ No newline at end of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.3&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.3&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..85dd33f5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.3&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,126 @@ + +#include "nel/misc/types_nl.h" +#include "nel/misc/debug.h" +#include "login_interface.h" + +#include "nel/net/msg_socket.h" +#include "nel/net/naming_client.h" + +#include +#include "nel/3d/driver.h" +#include "nel/misc/types_nl.h" +#include "login_interface.h" +#include "shards_list_interface.h" + +using namespace std; +using namespace NLNET; +using namespace NLMISC; + +CLogUserId login(NL3D::CScene * scene, uint w, uint h) +{ + CLoginInterface logscreen; + logscreen.init(scene, w, h); + return logscreen.log(); +} + +void connectToLS (LogUserId &luid) +{ + CInetAddress servaddr("vianneyl", 49999); + + CSocket server; + server.connect(servaddr); + + CMessage msgout(""); + msgout.setType(0); // we don't listen for incoming replies, therefore we must not use a type as string. 0 is the default action for CLogService : "LOG" + + string l, p; + int i; + for (i=0;i& shards) +{ + CShardsListInterface shardListScreen; + shardListScreen.init(scene, w, h, shards); + return shardListScreen.choose(); +} + + + +std::vector connect(CLogUserId id) //TEMP !! +{ + std::vector shards; + shards.reserve(10); + ucstring ucs; + ucs+='s';ucs+='h';ucs+='a';ucs+='r';ucs+='d';ucs+=' '; + ucstring ucsa = ucs; ucsa += 'A'; + shards.push_back(ucsa); + ucstring ucsb = ucs; ucsb += 'B'; + shards.push_back(ucsb); + ucstring ucsc = ucs; ucsc += 'C'; + shards.push_back(ucsc); + ucstring ucsd = ucs; ucsd += 'D'; + shards.push_back(ucsd); + ucstring ucse = ucs; ucse += 'E'; + shards.push_back(ucse); + ucstring ucsf = ucs; ucsf += 'F'; + shards.push_back(ucsf); + ucstring ucsg = ucs; ucsg += 'G'; + shards.push_back(ucsg); + return shards; +} + + + +/****************************************************************\ + MAIN +\****************************************************************/ +void main() +{ + InitDebug (); + + LogUserId id; + id.Login = 'c'; + id.Password = 'c'; + + //id = login(); + + // init scene + uint w = 800; + uint h = 600; + uint bpp = 32; + bool windowed = true; + NL3D::CScene scene; + NL3D::CSceneUt::init3d(scene, w, h, bpp, windowed); + + + // user login session + CLogUserId id = login(&scene, w, h); + + // connection // TEMP !! + std::vector shards = connect(id); + + // shard choice + uint shardIndex = chooseShard(&scene, w, h, shards); + + connectToLS (id); + // release scene + NL3D::CSceneUt::release3d(scene); +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.4&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.4&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..ff20c163 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.4&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,128 @@ + +#include "nel/misc/types_nl.h" +#include "nel/misc/debug.h" +#include "login_interface.h" + +#include "nel/net/msg_socket.h" +#include "nel/net/naming_client.h" + +#include +#include "nel/3d/driver.h" +#include "nel/misc/types_nl.h" +#include "login_interface.h" +#include "shards_list_interface.h" + +using namespace std; +using namespace NLNET; +using namespace NLMISC; + +CLogUserId login(NL3D::CScene * scene, uint w, uint h) +{ + CLoginInterface logscreen; + logscreen.init(scene, w, h); + return logscreen.log(); +} + +void connectToLS (CLogUserId &luid) +{ + CInetAddress servaddr("vianneyl", 49999); + + CSocket server; + server.connect(servaddr); + + CMessage msgout(""); + msgout.setType(0); // we don't listen for incoming replies, therefore we must not use a type as string. 0 is the default action for CLogService : "LOG" + + string l, p; + int i; + // TEMPPP + for (i=0;i& shards) +{ + CShardsListInterface shardListScreen; + shardListScreen.init(scene, w, h, shards); + return shardListScreen.choose(); +} + + + +std::vector connect(CLogUserId id) //TEMP !! +{ + std::vector shards; + shards.reserve(10); + ucstring ucs; + ucs+='s';ucs+='h';ucs+='a';ucs+='r';ucs+='d';ucs+=' '; + ucstring ucsa = ucs; ucsa += 'A'; + shards.push_back(ucsa); + ucstring ucsb = ucs; ucsb += 'B'; + shards.push_back(ucsb); + ucstring ucsc = ucs; ucsc += 'C'; + shards.push_back(ucsc); + ucstring ucsd = ucs; ucsd += 'D'; + shards.push_back(ucsd); + ucstring ucse = ucs; ucse += 'E'; + shards.push_back(ucse); + ucstring ucsf = ucs; ucsf += 'F'; + shards.push_back(ucsf); + ucstring ucsg = ucs; ucsg += 'G'; + shards.push_back(ucsg); + return shards; +} + + + +/****************************************************************\ + MAIN +\****************************************************************/ +void main() +{ + InitDebug (); + + //id = login(); + + // init scene + uint w = 800; + uint h = 600; + uint bpp = 32; + bool windowed = true; + NL3D::CScene scene; + NL3D::CSceneUt::init3d(scene, w, h, bpp, windowed); + + + // user login session + CLogUserId id = login(&scene, w, h); +/* + CLogUserId id; + id.Login = 'c'; + id.Password = 'c'; +*/ + + // connection // TEMP !! + std::vector shards = connect(id); + + // shard choice + uint shardIndex = chooseShard(&scene, w, h, shards); + + connectToLS (id); + // release scene + NL3D::CSceneUt::release3d(scene); +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.5&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.5&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..f23d09d6 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.5&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,127 @@ + +#include "nel/misc/types_nl.h" +#include "nel/misc/debug.h" +#include "login_interface.h" + +#include "nel/net/msg_socket.h" +#include "nel/net/naming_client.h" + +#include +#include "nel/3d/driver.h" +#include "nel/misc/types_nl.h" +#include "login_interface.h" +#include "shards_list_interface.h" + +using namespace std; +using namespace NLNET; +using namespace NLMISC; + +CLogUserId login(NL3D::CScene * scene, uint w, uint h) +{ + CLoginInterface logscreen; + logscreen.init(scene, w, h); + return logscreen.log(); +} + +void connectToLS (CLogUserId &luid) +{ + CInetAddress servaddr("vianneyl", 49999); + + CSocket server; + server.connect(servaddr); + + CMessage msgout(""); + msgout.setType(0); // we don't listen for incoming replies, therefore we must not use a type as string. 0 is the default action for CLogService : "LOG" + + string l, p; + int i; + // TEMPPP + for (i=0;i& shards) +{ + CShardsListInterface shardListScreen; + shardListScreen.init(scene, w, h, shards); + return shardListScreen.choose(); +} + + + +std::vector connect(CLogUserId id) //TEMP !! +{ + std::vector shards; + shards.reserve(10); + ucstring ucs; + ucs+='s';ucs+='h';ucs+='a';ucs+='r';ucs+='d';ucs+=' '; + ucstring ucsa = ucs; ucsa += 'A'; + shards.push_back(ucsa); + ucstring ucsb = ucs; ucsb += 'B'; + shards.push_back(ucsb); + ucstring ucsc = ucs; ucsc += 'C'; + shards.push_back(ucsc); + ucstring ucsd = ucs; ucsd += 'D'; + shards.push_back(ucsd); + ucstring ucse = ucs; ucse += 'E'; + shards.push_back(ucse); + ucstring ucsf = ucs; ucsf += 'F'; + shards.push_back(ucsf); + ucstring ucsg = ucs; ucsg += 'G'; + shards.push_back(ucsg); + return shards; +} + + + +/****************************************************************\ + MAIN +\****************************************************************/ +void main() +{ + //id = login(); + + // init scene + uint w = 800; + uint h = 600; + uint bpp = 32; + bool windowed = true; + NL3D::CScene scene; + NL3D::CSceneUt::init3d(scene, w, h, bpp, windowed); + + + // user login session + CLogUserId id = login(&scene, w, h); +/* + CLogUserId id; + id.Login = 'c'; + id.Password = 'c'; +*/ + + connectToLS (id); + + // connection // TEMP !! + std::vector shards = connect(id); + + // shard choice + uint shardIndex = chooseShard(&scene, w, h, shards); + + // release scene + NL3D::CSceneUt::release3d(scene); +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.6&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.6&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..65013a62 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.6&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,207 @@ +/** \file client.cpp + * Client prototype + * + * $Id: client.cpp,v 1.6 2000/11/23 15:36:14 coutelas Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NEL. + * NEVRAX NEL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + + * NEVRAX NEL is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with NEVRAX NEL; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#include "nel/misc/types_nl.h" +#include "nel/misc/debug.h" +#include "nel/misc/i18n.h" + +#include "nel/net/msg_socket.h" +#include "nel/net/naming_client.h" +#include "nel/net/unitime.h" + +#include "nel/3d/driver.h" + +#include "language_interface.h" +#include "login_interface.h" +#include "shards_list_interface.h" + +#include + +using namespace std; +using namespace NLNET; +using namespace NLMISC; +using namespace NL3D; + + + +/** + * login + */ +CLogUserId login(NL3D::CScene * scene, uint w, uint h) +{ + CLoginInterface logscreen; + logscreen.init(scene, w, h); + return logscreen.log(); +} + + +/** + * connect + */ + + +/** + * connectToLS + */ +bool connectToLS (CLogUserId &luid, vector& shards) +{ + CInetAddress servaddr("vianneyl", 49999); + + CSocket server; + try + { + server.connect(servaddr); + } + catch(Exception e) + { + return false; + } + + CMessage msgout(""); + msgout.setType(0); // we don't listen for incoming replies, therefore we must not use a type as string. 0 is the default action for CLogService : "LOG" + + string l, p; + uint i; + // TEMPPP + for (i=0; i& shards) +{ + CShardsListInterface shardListScreen; + shardListScreen.init(scene, w, h, shards); + return shardListScreen.choose(); +} + + + + + +/****************************************************************\ + MAIN +\****************************************************************/ +void main() +{ + // synchronize time with server + CUniTime::syncUniTimeFromService(); + + // init scene + uint w = 800; + uint h = 600; + uint bpp = 32; + bool windowed = true; + NL3D::CScene scene; + NL3D::CSceneUt::init3d(scene, w, h, bpp, windowed); + + + // language choice + uint languageIndex = chooseLanguage(&scene, w, h); + CI18N::load(languageIndex); + + //shard's name list + vector shards; + + // user id (login & password) + CLogUserId id; + + // connection + bool connected = false; + bool goOn = true; + do + { + id = login(&scene, w, h); + connected = connectToLS (id,shards); + if(!connected) + { + IDriver::TMessageBoxId answer = + scene.getDriver()->systemMessageBox(CI18N::get("Can't establish connection").c_str(), + CI18N::get("user connection").c_str(), IDriver::retryCancelType, IDriver::errorIcon); + if(answer==IDriver::cancelId) goOn = false; + } + } + while(!connected && goOn); + + + // shard choice + if(connected) + uint shardIndex = chooseShard(&scene, w, h, shards); + + // release scene + NL3D::CSceneUt::release3d(scene); + + + +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.8&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.8&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..37604174 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.8&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,265 @@ +/** \file client.cpp + * Client prototype + * + * $Id: client.cpp,v 1.8 2000/11/24 14:17:35 coutelas Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NEL. + * NEVRAX NEL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + + * NEVRAX NEL is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with NEVRAX NEL; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#include "nel/misc/types_nl.h" +#include "nel/misc/debug.h" +#include "nel/misc/i18n.h" + +#include "nel/net/msg_socket.h" +#include "nel/net/naming_client.h" +#include "nel/net/unitime.h" + +#include "nel/3d/driver.h" + +#include "language_interface.h" +#include "login_interface.h" +#include "shards_list_interface.h" + +#include + +using namespace std; +using namespace NLNET; +using namespace NLMISC; +using namespace NL3D; + + +#ifdef NL_OS_WINDOWS +CFontGenerator fontGen("\\\\server\\code\\fonts\\arialuni.ttf"); +#else +CFontGenerator fontGen("arialuni.ttf"); +#endif + + +/** + * login + */ +CLogUserId login(NL3D::CScene * scene, + NL3D::CFontGenerator * fontGenerator, + uint w, uint h) +{ + CLoginInterface logscreen(scene, fontGenerator, w, h); + return logscreen.log(); +} + + + +/** + * connectToLS + */ +bool connectToLS (CLogUserId &luid, vector& shards) +{ + CInetAddress servaddr("vianneyl", 49999); + + CSocket server; + try + { + server.connect(servaddr); + } + catch(Exception) + { + return false; + } + + CMessage msgout(""); + msgout.setType(0); // we don't listen for incoming replies, therefore we must not use a type as string. 0 is the default action for CLogService : "LOG" + + string l = luid.Login.toString(), p = luid.Password.toString(); + msgout.serial(l); + msgout.serial(p); + + // send the message + server.send(msgout); + + // receive the answer + CMessage msgin("", true); + server.receive(msgin); + + uint8 ok; + msgin.serial (ok); + nlinfo ("res=%d", ok); + + if (ok) + { + uint32 nbshard, id; + msgin.serial (id); + msgin.serial (nbshard); + for (uint i = 0; i < nbshard; i++) + { + string shardip, shardname; + msgin.serial (shardip); + msgin.serial (shardname); + shards.push_back (shardip); + } + } + + server.close(); + + return ok==1; +} + + +/** + * chooseLanguage + */ +sint chooseLanguage(NL3D::CScene * scene, + NL3D::CFontGenerator * fontGenerator, + uint w, uint h) +{ + CLanguageInterface languageScreen(scene, fontGenerator, w, h); + return languageScreen.choose(); +} + + + +/** + * chooseShard + */ +sint chooseShard(NL3D::CScene * scene, + NL3D::CFontGenerator * fontGenerator, + uint w, uint h, + const std::vector& shards) +{ + CShardsListInterface shardListScreen(scene, fontGenerator, w, h, shards); + return shardListScreen.choose(); +} + + +enum TState +{ + LANGUAGE, + LOGIN, + CONNECT, + SHARD +}; + + +/****************************************************************\ + MAIN +\****************************************************************/ +void main() +{ + try + { + // init scene + uint w = 800; + uint h = 600; + uint bpp = 32; + bool windowed = true; + NL3D::CScene scene; + NL3D::CSceneUt::init3d(scene, w, h, bpp, windowed); + + // synchronize time with server + CUniTime::syncUniTimeFromService(); + + // user id (login & password) + CLogUserId id; + + //shard's name list + vector shards; + + // index of chard in the list + sint shardIndex; + + TState clientSate = LANGUAGE; + bool quit = false; + while(!quit) + { + switch(clientSate) + { + // language choice + case LANGUAGE: + { + sint languageIndex = chooseLanguage(&scene, &fontGen, w, h); + if(languageIndex==-1) + quit = true; + else + { + CI18N::load(languageIndex); + clientSate = LOGIN; + } + } + break; + + // get user's login and password + case LOGIN: + { + id = login(&scene, &fontGen, w, h); + if(id.Login.size()==0) // happens only if return back is asked + clientSate = LANGUAGE; + else + clientSate = CONNECT; + } + break; + + // connection + case CONNECT: + { + bool connected = connectToLS (id,shards); + if(!connected) + { + if(windowed) + { + IDriver::TMessageBoxId answer = + scene.getDriver()->systemMessageBox("Can't establish connection", + "user connection", IDriver::retryCancelType, IDriver::errorIcon); + if(answer==IDriver::cancelId) + clientSate = LOGIN; + else + clientSate = CONNECT; + } + else + clientSate = LOGIN; + } + else + clientSate = SHARD; + } + break; + + // shard choice + case SHARD: + { + shardIndex = chooseShard(&scene, &fontGen, w, h, shards); + if(shardIndex==-1) + clientSate = LOGIN; + else + quit = true; + } + break; + } + + if(quit) break; + } + + + // release scene + NL3D::CSceneUt::release3d(scene); + + } + catch(Exception &e) + { + nlerror ("main(): Exception trapped: %s", e.what ()); + } + +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.9&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.9&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..cf88fe72 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/client.cpp?rev=1.9&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,185 @@ +/** \file client.cpp + * Client prototype + * + * $Id: client.cpp,v 1.9 2000/11/28 13:21:23 coutelas Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NEL. + * NEVRAX NEL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + + * NEVRAX NEL is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with NEVRAX NEL; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#include "nel/misc/types_nl.h" +#include "nel/misc/debug.h" +#include "nel/misc/i18n.h" + +#include "nel/net/msg_socket.h" +#include "nel/net/naming_client.h" +#include "nel/net/unitime.h" + +#include "nel/3d/driver.h" + +#include "language_interface.h" +#include "login_interface.h" +#include "shards_list_interface.h" + +#include + +using namespace std; +using namespace NLNET; +using namespace NLMISC; +using namespace NL3D; + + +#ifdef NL_OS_WINDOWS +CFontGenerator fontGen("\\\\server\\code\\fonts\\arialuni.ttf"); +#else +CFontGenerator fontGen("arialuni.ttf"); +#endif + + +/** + * login + */ +sint8 login(NL3D::CScene * scene, + NL3D::CFontGenerator * fontGenerator, + uint w, uint h, vector& shards) +{ + CLoginInterface logscreen(scene, fontGenerator, w, h); + return logscreen.log(shards); +} + + + +/** + * chooseLanguage + */ +sint chooseLanguage(NL3D::CScene * scene, + NL3D::CFontGenerator * fontGenerator, + uint w, uint h) +{ + CLanguageInterface languageScreen(scene, fontGenerator, w, h); + return languageScreen.choose(); +} + + + +/** + * chooseShard + */ +sint chooseShard(NL3D::CScene * scene, + NL3D::CFontGenerator * fontGenerator, + uint w, uint h, + const std::vector& shards) +{ + CShardsListInterface shardListScreen(scene, fontGenerator, w, h, shards); + return shardListScreen.choose(); +} + + +enum TState +{ + LANGUAGE, + LOGIN, + SHARD +}; + + +/****************************************************************\ + MAIN +\****************************************************************/ +void main() +{ + try + { + // init scene + uint w = 800; + uint h = 600; + uint bpp = 32; + bool windowed = false;//true; + NL3D::CScene scene; + NL3D::CSceneUt::init3d(scene, w, h, bpp, windowed); + + // synchronize time with server + CUniTime::syncUniTimeFromService(); + + // user id (login & password) + CLogUserId id; + + //shard's name list + vector shards; + + // index of chard in the list + sint shardIndex; + + + TState clientState = LANGUAGE; + bool quit = false; + while(!quit) + { + switch(clientState) + { + // language choice + case LANGUAGE: + { + sint languageIndex = chooseLanguage(&scene, &fontGen, w, h); + if(languageIndex==-1) + quit = true; + else + { + CI18N::load(languageIndex); + clientState = LOGIN; + } + } + break; + + // get user's login and password + case LOGIN: + { + if(login(&scene, &fontGen, w, h, shards)) + clientState = SHARD; + else + clientState = LANGUAGE; + } + break; + + // shard choice + case SHARD: + { + shardIndex = chooseShard(&scene, &fontGen, w, h, shards); + if(shardIndex==-1) + clientState = LOGIN; + else + quit = true; + } + break; + } + + if(quit) break; + } + + + // release scene + NL3D::CSceneUt::release3d(scene); + + } + catch(Exception &e) + { + nlerror ("main(): Exception trapped: %s", e.what ()); + } + +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/english.txt?rev=1.2&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/english.txt?rev=1.2&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..103279bd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/english.txt?rev=1.2&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,4 @@ +"english" +"Identification" = ":Identification" +"Login :" = ":Login :" +"Password :" = ":Password :" diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/english.uxt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/english.uxt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..0c9f0142 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/english.uxt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,4 @@ +"english" +"Identification" = ":Identification" +"Login :" = ":Login :" +"Password :" = ":Password :" diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.txt?rev=1.2&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.txt?rev=1.2&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..fe395e28 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.txt?rev=1.2&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,4 @@ +"Français" +"Identification" = "Identification (Nöel œuvre)" +"Login :" = "Nom :" +"Password :" = "Môt de passe :" diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.uxt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.uxt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..c3cc4b7b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.uxt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,4 @@ +"Français" +"Identification" = "Identification (Nöel œuvre)" +"Login :" = "Nom :" +"Password :" = "Môt de passe :" diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.uxt?rev=1.5&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.uxt?rev=1.5&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..47c94e44 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/french.uxt?rev=1.5&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,5 @@ +"Français" +"Identification" = "Identification" +"Login :" = "Nom :" +"Password :" = "Mot de passe :" + diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/fun.txt?rev=1.1&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/fun.txt?rev=1.1&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..af5b8b89 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/fun.txt?rev=1.1&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,4 @@ +"讋讍譯譭" +"Identification" = "ﶰﶴﶚﶍ" +"Login :" = "푦푆퐭쎫钀 :" +"Password :" = "ພຕຂ๚ :" diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/german.txt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/german.txt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..0fba0a87 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/german.txt?rev=1.1&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,6 @@ +"Deutch" +"user connection" = ":user connection" +"Can't establish connection" = ":Can't establish connection" +"Identification" = ":Identification" +"Login :" = ":Login :" +"Password :" = ":Password :" diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/Attic/move_listener.h?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/move_listener.h?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html new file mode 100644 index 00000000..8fc3444c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/Attic/move_listener.h?rev=1.2&content-type=text/plain&hideattic=0&sortby=date/index.html @@ -0,0 +1,163 @@ +/** \file move_listener.h + * + * + * $Id: move_listener.h,v 1.2 2000/12/04 17:58:09 coutelas Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NEL. + * NEVRAX NEL is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + + * NEVRAX NEL is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with NEVRAX NEL; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#ifndef NL_MOVE_LISTENER_H +#define NL_MOVE_LISTENER_H + +#include "nel/misc/types_nl.h" +#include "nel/misc/event_listener.h" +#include "nel/misc/matrix.h" +#include "nel/3d/viewport.h" +#include "nel/3d/scene.h" +#include "nel/3d/camera.h" + + + +namespace NL3D +{ + + +/** + * CMoveListener is a listener that handle a 3d matrix with mouse events. + * \author Stephane Coutelas + * \author Nevrax France + * \date 2000 + */ +class CMoveListener : public NLMISC::IEventListener +{ +public: + + /** + * TMoveMode. + * moving modes + */ + enum TMoveMode + { + WALK, + FREE + }; + + /** + * Constructor. + * You should call init then. + */ + CMoveListener(); + + + /** + * Constructor. + * You should call init then. + * \param scene the scene + * \param w screen width in pixels + * \param h screen height in pixels + * \param camera the camera + */ + void init(CScene * scene, uint w, uint h, const class CCamera& camera) + { + _Scene = scene; + _Width = w; + _Height = h; + + _Viewport = scene->getViewport(); + + float dummy; + _ViewMatrix = camera.getMatrix (); + camera.getFrustum (_Left, _Right, _Bottom, _Top, _Depth, dummy); + } + + /** + * Set the moving mode + * \param m the moving mode + */ + void setMode(TMoveMode m) + { + _Mode = m; + } + + /** + * Register the listener to the server. + */ + void addToServer (NLMISC::CEventServer& server); + + /** + * Unregister the listener to the server. + */ + void removeFromServer (NLMISC::CEventServer& server); + + +private: + + /// Internal use + virtual void operator()(const NLMISC::CEvent& event); + + /// moving mode + TMoveMode _Mode; + + /// view matrix + NLMISC::CMatrix _ViewMatrix; + + /// viewport + NL3D::CViewport _Viewport; + + /// true if previous mouse move event was re-centering cursor + bool _CursorReset; + + CScene * _Scene; + + /// screen width + uint _Width; + + /// screen height + uint _Height; + + ///frustum parameters + float _Top; + float _Bottom; + float _Left; + float _Right; + float _Depth; + + /// current position + CVector _Pos; + + ///current rotation z angle + float _RotZ; + + ///current rotation x angle + float _RotX; + + /// step for translation + static const float _StepTrans; + + /// step for rotation + static const float _StepRot; + +}; // NL3D + +} + +#endif // NL_MOVE_LISTENER_H + +/* End of move_listener.h */ diff --git a/cvs/cvsweb.cgi/~checkout~/code/client/doc/Attic/client.dox?rev=1.1&content-type=text/plain&hideattic=0/index.html b/cvs/cvsweb.cgi/~checkout~/code/client/doc/Attic/client.dox?rev=1.1&content-type=text/plain&hideattic=0/index.html new file mode 100644 index 00000000..e119a4bd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/client/doc/Attic/client.dox?rev=1.1&content-type=text/plain&hideattic=0/index.html @@ -0,0 +1,693 @@ +# Doxyfile 1.2.1 + +# This file describes the settings to be used by doxygen for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# General configuration options +#--------------------------------------------------------------------------- + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = Client + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = r:\code\client\doc +#/home/httpd/html/docs/code + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Dutch, French, Italian, Czech, Swedish, German, Finnish, Japanese, +# Spanish, Russian, Croatian, Polish, and Portuguese. + +OUTPUT_LANGUAGE = English + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = YES + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these class will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = NO + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. It is allowed to use relative paths in the argument list. + +STRIP_FROM_PATH = + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a class diagram (in Html and LaTeX) for classes with base or +# super classes. Setting the tag to NO turns the diagrams off. + +CLASS_DIAGRAMS = YES + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the CASE_SENSE_NAMES tag is set to NO (the default) then Doxygen +# will only generate file names in lower case letters. If set to +# YES upper case letters are also allowed. This is useful if you have +# classes or files whose names only differ in case and if your file system +# supports case sensitive file names. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the JAVADOC_AUTOBRIEF tag is set to YES (the default) then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the Javadoc-style will +# behave just like the Qt-style comments. + +JAVADOC_AUTOBRIEF = YES + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# reimplements. + +INHERIT_DOCS = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# The ENABLE_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. + +WARN_FORMAT = "$file:$line: $text" + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = R:/code/client +#/var/tmp/doxit.tmp/code/server + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +FILE_PATTERNS = *.h *.c *.cpp *.dxt + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. + +EXCLUDE_PATTERNS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. + +INPUT_FILTER = + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = C I P + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compressed HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = YES + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimised for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using a WORD or other. +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assigments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. Warning: This feature +# is still experimental and very incomplete. + +GENERATE_XML = NO + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_PREDEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_PREDEF_ONLY tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +#--------------------------------------------------------------------------- +# Configuration::addtions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES tag can be used to specify one or more tagfiles. + +TAGFILES = R:/code/nel/doc/nel.tag=/code/nel/doc/html + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = client.tag + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the ENABLE_PREPROCESSING, INCLUDE_GRAPH, and HAVE_DOT tags are set to +# YES then doxygen will generate a graph for each documented file showing +# the direct and indirect include dependencies of the file with other +# documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, INCLUDED_BY_GRAPH, and HAVE_DOT tags are set to +# YES then doxygen will generate a graph for each documented header file showing +# the documented files that directly or indirectly include this file + +INCLUDED_BY_GRAPH = YES + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found on the path. + +DOT_PATH = s:\bin\graphviz\bin + +# The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. + +MAX_DOT_GRAPH_WIDTH = 1024 + +# The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. + +MAX_DOT_GRAPH_HEIGHT = 1024 + +#--------------------------------------------------------------------------- +# Configuration::addtions related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. + +SEARCHENGINE = YES + +# The CGI_NAME tag should be the name of the CGI script that +# starts the search engine (doxysearch) with the correct parameters. +# A script with this name will be generated by doxygen. + +CGI_NAME = nel-search.cgi + +# The CGI_URL tag should be the absolute URL to the directory where the +# cgi binaries are located. See the documentation of your http daemon for +# details. + +CGI_URL = http://nevrax/cgi-bin/ + +# The DOC_URL tag should be the absolute URL to the directory where the +# documentation is located. If left blank the absolute path to the +# documentation, with file:// prepended to it, will be used. + +DOC_URL = http://nevrax/docs/code/nel/ + +# The DOC_ABSPATH tag should be the absolute path to the directory where the +# documentation is located. If left blank the directory on the local machine +# will be used. + +DOC_ABSPATH = /home/httpd/html/docs/code/nel/ + +# The BIN_ABSPATH tag must point to the directory where the doxysearch binary +# is installed. + +BIN_ABSPATH = /usr/bin/ + +# The EXT_DOC_PATHS tag can be used to specify one or more paths to +# documentation generated for other projects. This allows doxysearch to search +# the documentation for these projects as well. + +EXT_DOC_PATHS = diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.1&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.1&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..bde3591a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.1&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,16 @@ +Nevrax Team : + + Vianney Lecroart + Vincent Archer + Cyril Corvazier + Sameh Chafik + Lionel Berenguier + Antoine Viau + Olivier Cado + Pierre Portier + Gabriel Robert + Stephane Coutelas + Benjamin Legros + Yan Babilliot + Cedric Valignat + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.2&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.2&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..342e46ee --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.2&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,17 @@ +Nevrax Team : + + Vianney Lecroart + Vincent Archer + Cyril Corvazier + Sameh Chafik + Alain Saffray + Lionel Berenguier + Antoine Viau + Olivier Cado + Pierre Portier + Gabriel Robert + Stephane Coutelas + Benjamin Legros + Yan Babilliot + Cedric Valignat + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.3&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.3&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..2810290d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/AUTHORS?rev=1.3&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,19 @@ +Nevrax Team : + + Daniel Miller + Vianney Lecroart + Vincent Archer + Cyril Corvazier + Sameh Chafik + Alain Saffray + Guillaume Puzin + Lionel Berenguier + Antoine Viau + Olivier Cado + Pierre Portier + Gabriel Robert + Stephane Coutelas + Benjamin Legros + Yan Babilliot + Cedric Valignat + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/COPYING?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/COPYING?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..d60c31a9 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/COPYING?rev=1.1&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.12&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.12&sortby=date new file mode 100644 index 00000000..1a119b03 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.12&sortby=date @@ -0,0 +1,150 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.17&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.17&sortby=author new file mode 100644 index 00000000..a0449837 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.17&sortby=author @@ -0,0 +1,173 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable-. + NeL Misc is mandatory and cannot be disabled. + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.6&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.6&sortby=author new file mode 100644 index 00000000..42eb09fd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?content-type=text/plain&rev=1.6&sortby=author @@ -0,0 +1,134 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.1&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.1&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..ce409fd8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.1&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,103 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= + % make + + The "configure" script must be call with the "--with-stlport" option. + This option permit to override the default STL headers. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case that you need to rebuild the "configure" script and/or the + "Makefile.in" files, execute the "bootstrap" script in the NeL + directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.1&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.1&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..ce409fd8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.1&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,103 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= + % make + + The "configure" script must be call with the "--with-stlport" option. + This option permit to override the default STL headers. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case that you need to rebuild the "configure" script and/or the + "Makefile.in" files, execute the "bootstrap" script in the NeL + directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.10&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.10&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..8d35f6f4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.10&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,148 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.10&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.10&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..8d35f6f4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.10&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,148 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.11&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.11&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..b0b6e502 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.11&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,147 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.12&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.12&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..1a119b03 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.12&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,150 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.13&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.13&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..f9db6526 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.13&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,172 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation : + + - You need to intall gmumake and to place it in the PATH. + + - Open a Dos window and go in the FreeType's src directory. + + - Execute `make setup visualc' followed by `make`. + + If your are using your own IDE, you must be sure that the + src/psaux/psaux.c file is include in the project's files list to + compile. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.13&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.13&sortby=date new file mode 100644 index 00000000..f9db6526 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.13&sortby=date @@ -0,0 +1,172 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation : + + - You need to intall gmumake and to place it in the PATH. + + - Open a Dos window and go in the FreeType's src directory. + + - Execute `make setup visualc' followed by `make`. + + If your are using your own IDE, you must be sure that the + src/psaux/psaux.c file is include in the project's files list to + compile. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.14&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.14&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..5908b9e5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.14&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,175 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.15&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.15&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..efb01e39 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.15&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,172 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.15&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.15&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..efb01e39 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.15&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,172 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.16&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.16&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..fe4bd897 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.16&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,173 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + - OpenAL + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.16&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.16&sortby=date new file mode 100644 index 00000000..fe4bd897 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.16&sortby=date @@ -0,0 +1,173 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + - OpenAL + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.18&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.18&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..9702fd8a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.18&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,190 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.18&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.18&sortby=date new file mode 100644 index 00000000..9702fd8a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.18&sortby=date @@ -0,0 +1,190 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.19&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.19&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..182b8f7b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.19&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,191 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - LibXML (NeL Misc) + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.2&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.2&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..ac18b246 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.2&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,116 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Mesa + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= + % make + + The "configure" script must be call with the "--with-stlport" option. + This option permit to override the default STL headers. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case that you need to rebuild the "configure" script and/or the + "Makefile.in" files, execute the "bootstrap" script in the NeL + directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.20&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.20&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..d41c9980 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.20&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,194 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - LibXML (NeL Misc) + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.20&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.20&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..d41c9980 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.20&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,194 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - LibXML (NeL Misc) + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.21&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.21&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..1e44b20a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.21&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,194 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 (Mandatory) + - LibXML 2.4.13 (NeL Misc) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.21&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.21&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..1e44b20a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.21&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,194 @@ + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 (Mandatory) + - LibXML 2.4.13 (NeL Misc) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort need to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.22&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.22&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..e0941718 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.22&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,194 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (NeL Misc) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.22&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.22&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..e0941718 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.22&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,194 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (NeL Misc) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.23&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.23&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..a2be9e23 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.23&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,194 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.23&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.23&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..a2be9e23 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.23&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,194 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.24&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.24&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..40653276 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.24&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,208 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - Direct Input 8 (NeL MISC, Windows version) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + For windows users, note that you don't need to have the Direct Input (verion 8) dll + on your system for NeL to run, but in this case, there will be no joystick support, and + no low level access to keyboard and mouse. Anyway, you need dinput.lib to compile + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + - For DirectX8 : install the SDK, then setup your directories as follow : + mssdkdir/include/dx8/ + mssdkdir/lib + Add mssdkdir/include to the "Include Files" category. + Add mssdkdir/lib to the "Library Files" category. + Make sure these appear before visual includes, as an older version of directX + may be present in Visual C++ headers. + + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.24&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.24&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..40653276 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.24&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,208 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - Direct Input 8 (NeL MISC, Windows version) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + For windows users, note that you don't need to have the Direct Input (verion 8) dll + on your system for NeL to run, but in this case, there will be no joystick support, and + no low level access to keyboard and mouse. Anyway, you need dinput.lib to compile + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + - For DirectX8 : install the SDK, then setup your directories as follow : + mssdkdir/include/dx8/ + mssdkdir/lib + Add mssdkdir/include to the "Include Files" category. + Add mssdkdir/lib to the "Library Files" category. + Make sure these appear before visual includes, as an older version of directX + may be present in Visual C++ headers. + + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.25&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.25&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..0d770a9b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.25&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,227 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - Direct Input 8 (NeL Misc, Windows version) + - EAX 2 (NeL Sound, Windows version) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + For windows users, note that you don't need to have the Direct Input (verion 8) dll + on your system for NeL to run, but in this case, there will be no joystick support, and + no low level access to keyboard and mouse. Anyway, you need dinput.lib to compile + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Requirements for Nel Misc: Direct Input 8 + + - Install the DirectX8 SDK, then create a subdirectory called + dx8 in mssdkdir/include/ and move all files from mssdkdir/include/ + to mssdkdir/include/dx8/. + + - Add mssdkdir/include to the "Include Files" category. + Add mssdkdir/lib to the "Library Files" category. + Make sure these appear before visual c++ includes, as an older + version of directX may be present in Visual C++ headers. + + Requirements for NeL Sound: OpenAL and EAX 2 + + - Add the include and library directories for OpenAL: + Add openaldir/win/ to the "Include Files" category. + Add openaldir/win/al/ to the "Include Files" category. + Add openaldir/win/openal32/release to the "Library Files" category. + Add openaldir/win/alut/release to the "Library Files" category. + (Please note the include directories are not located in + openaldir/include/ but in openaldir/win/ on the Windows platform) + + - Add the include and library directories for EAX: + Add eaxdir/include to the "Include Files" category. + Add eaxdir/libs to the "Library Files" category. + + - At runtime, you will need openal32.dll and eax.dll in your path. + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.26&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.26&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..2c14a12e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.26&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,232 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - Direct Input 8 (NeL Misc, Windows version) + - EAX 2 (NeL Sound, Windows version) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + For windows users, note that you don't need to have the Direct Input (verion 8) dll + on your system for NeL to run, but in this case, there will be no joystick support, and + no low level access to keyboard and mouse. Anyway, you need dinput.lib to compile + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP5 + Processor Pack for SP5. + + SP5 and Processor Pack for SP5 can be found at: + + + + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Requirements for Nel Misc: Direct Input 8 + + - Install the DirectX8 SDK, then create a subdirectory called + dx8 in mssdkdir/include/ and move all files from mssdkdir/include/ + to mssdkdir/include/dx8/. + + - Add mssdkdir/include to the "Include Files" category. + Add mssdkdir/lib to the "Library Files" category. + Make sure these appear before visual c++ includes, as an older + version of directX may be present in Visual C++ headers. + + Requirements for NeL Sound: OpenAL and EAX 2 + + - Add the include and library directories for OpenAL: + Add openaldir/win/ to the "Include Files" category. + Add openaldir/win/al/ to the "Include Files" category. + Add openaldir/win/openal32/release to the "Library Files" category. + Add openaldir/win/alut/release to the "Library Files" category. + (Please note the include directories are not located in + openaldir/include/ but in openaldir/win/ on the Windows platform) + + - Add the include and library directories for EAX: + Add eaxdir/include to the "Include Files" category. + Add eaxdir/libs to the "Library Files" category. + + - At runtime, you will need openal32.dll and eax.dll in your path. + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.27&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.27&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..0baddf08 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.27&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,230 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - Direct Input 8 (NeL MISC, Windows version) + - EAX 2 (NeL Sound, Windows version) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + For windows users, note that you don't need to have the Direct Input (verion 8) dll + on your system for NeL to run, but in this case, there will be no joystick support, and + no low level access to keyboard and mouse. Anyway, you need dinput.lib to compile + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP5 + Processor Pack for SP5. + + SP5 and Processor Pack for SP5 can be found at: + + + + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + + Requirements for Nel Misc: Direct Input 8 + + - Install the DirectX8 SDK + - Add mssdk/include to the "Include Files" category. + Add mssdk/lib to the "Library Files" category. + Make sure these appear before visual c++ includes, as an older + version of directX may be present in Visual C++ headers. + + Requirements for NeL Sound: OpenAL and EAX 2 + + - Add the include and library directories for OpenAL: + Add openaldir/win/ to the "Include Files" category. + Add openaldir/win/al/ to the "Include Files" category. + Add openaldir/win/openal32/release to the "Library Files" category. + Add openaldir/win/alut/release to the "Library Files" category. + (Please note the include directories are not located in + openaldir/include/ but in openaldir/win/ on the Windows platform) + + - Add the include and library directories for EAX: + Add eaxdir/include to the "Include Files" category. + Add eaxdir/libs to the "Library Files" category. + + - At runtime, you will need openal32.dll and eax.dll in your path. + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.27&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.27&sortby=log new file mode 100644 index 00000000..0baddf08 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.27&sortby=log @@ -0,0 +1,230 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - Direct Input 8 (NeL MISC, Windows version) + - EAX 2 (NeL Sound, Windows version) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + For windows users, note that you don't need to have the Direct Input (verion 8) dll + on your system for NeL to run, but in this case, there will be no joystick support, and + no low level access to keyboard and mouse. Anyway, you need dinput.lib to compile + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP5 + Processor Pack for SP5. + + SP5 and Processor Pack for SP5 can be found at: + + + + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + + Requirements for Nel Misc: Direct Input 8 + + - Install the DirectX8 SDK + - Add mssdk/include to the "Include Files" category. + Add mssdk/lib to the "Library Files" category. + Make sure these appear before visual c++ includes, as an older + version of directX may be present in Visual C++ headers. + + Requirements for NeL Sound: OpenAL and EAX 2 + + - Add the include and library directories for OpenAL: + Add openaldir/win/ to the "Include Files" category. + Add openaldir/win/al/ to the "Include Files" category. + Add openaldir/win/openal32/release to the "Library Files" category. + Add openaldir/win/alut/release to the "Library Files" category. + (Please note the include directories are not located in + openaldir/include/ but in openaldir/win/ on the Windows platform) + + - Add the include and library directories for EAX: + Add eaxdir/include to the "Include Files" category. + Add eaxdir/libs to the "Library Files" category. + + - At runtime, you will need openal32.dll and eax.dll in your path. + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.28&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.28&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..3cdfa675 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.28&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,232 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - Direct Input 8 (NeL MISC, Windows version) + - EAX 2 (NeL Sound, Windows version) + + (Greater version of these libraries should also be ok) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + For windows users, note that you don't need to have the Direct Input (verion 8) dll + on your system for NeL to run, but in this case, there will be no joystick support, and + no low level access to keyboard and mouse. Anyway, you need dinput.lib to compile + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP5 + Processor Pack for SP5. + + SP5 and Processor Pack for SP5 can be found at: + + + + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + + Requirements for Nel Misc: Direct Input 8 + + - Install the DirectX8 SDK + - Add mssdk/include to the "Include Files" category. + Add mssdk/lib to the "Library Files" category. + Make sure these appear before visual c++ includes, as an older + version of directX may be present in Visual C++ headers. + + Requirements for NeL Sound: OpenAL and EAX 2 + + - Add the include and library directories for OpenAL: + Add openaldir/win/ to the "Include Files" category. + Add openaldir/win/al/ to the "Include Files" category. + Add openaldir/win/openal32/release to the "Library Files" category. + Add openaldir/win/alut/release to the "Library Files" category. + (Please note the include directories are not located in + openaldir/include/ but in openaldir/win/ on the Windows platform) + + - Add the include and library directories for EAX: + Add eaxdir/include to the "Include Files" category. + Add eaxdir/libs to the "Library Files" category. + + - At runtime, you will need openal32.dll and eax.dll in your path. + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.29&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.29&sortby=rev new file mode 100644 index 00000000..82279ce2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.29&sortby=rev @@ -0,0 +1,232 @@ + +Requirements +============ + + The NeL library needs the following libraries : + + - STLPort 4.5 (Mandatory) + - LibXML 2.4.13 (Mandatory) + - FreeType 2 (NeL 3D) + - OpenAL (NeL Sound) + - Python 1.5 (NeL AI) + - Direct Input 8 (NeL MISC, Windows version) + - EAX 2 (NeL Sound, Windows version) + + (Greater version of these libraries should also be ok, if not, contact us) + + STLPort needs to be compiled. NeL is using the SGI iostreams and it require + the STLPort compilation and a linking of NeL with the STLPort library. + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + + - Mesa 3.3 (NeL 3D) + + On some OpenGL implementations, you migth have some troubles, coming from + the file, to get NeL to compile. This file could be missing + or not up to date. You will find the latest version of this file on SGI's + website : + + - glext.h + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if NeL will work with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + For windows users, note that you don't need to have the Direct Input (verion 8) dll + on your system for NeL to run, but in this case, there will be no joystick support, and + no low level access to keyboard and mouse. Anyway, you need dinput.lib to compile + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP5 + Processor Pack for SP5. + + SP5 and Processor Pack for SP5 can be found at: + + + + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process, and you should carefully read these libraries + documentation (at least the README and INSTALL files) before compiling + and installing them. + + STLport Compilation : + + - Open a Dos window and go in the STLPort's src directory. + + - Rename or copy the "vc6-unicode.mak" to "Makefile". + + - Execute `nmake clean all` followed by `nmake install`. + + FreeType compilation, by using GNU Make : + + - You need to intall GNU make and to place it in the PATH. + + + + - Open a Dos window and go in the FreeType's directory. + + - Execute `make setup visualc' followed by `make`. + + FreeType compilation, by using an IDE : + + - Compile every (base and optionnal) library components listed + at the end of the FreeType's INSTALL file. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.5/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.5/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + + Requirements for Nel Misc: Direct Input 8 + + - Install the DirectX8 SDK + - Add mssdk/include to the "Include Files" category. + Add mssdk/lib to the "Library Files" category. + Make sure these appear before visual c++ includes, as an older + version of directX may be present in Visual C++ headers. + + Requirements for NeL Sound: OpenAL and EAX 2 + + - Add the include and library directories for OpenAL: + Add openaldir/win/ to the "Include Files" category. + Add openaldir/win/al/ to the "Include Files" category. + Add openaldir/win/openal32/release to the "Library Files" category. + Add openaldir/win/alut/release to the "Library Files" category. + (Please note the include directories are not located in + openaldir/include/ but in openaldir/win/ on the Windows platform) + + - Add the include and library directories for EAX: + Add eaxdir/include to the "Include Files" category. + Add eaxdir/libs to the "Library Files" category. + + - At runtime, you will need openal32.dll and eax.dll in your path. + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Include Files" category. + ex: D:/test/code/nel/include + + - Add the NEL source directory to the "Include Files" category. + ex: D:/test/code/nel/src + + - Add the NeL library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the NeL directory do : + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport". + The option "--with-stlport" allow to override the default STL headers + + It is possible to compile and install only the needed part of NeL. + So you may, by using --disable- and --enable- : + + - misc + default: Mandatory + - net + default: Enables + desativate with: --disable-net + - 3d + default: Enable + desativate with: --disable-3d + - pacs + default: Enable + desativate with: --disable-pacs + - sound + default: Disable + ativate with: --enable-sound + - ai + default: Disable + ativate with: --enable-ai + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.3&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.3&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..6701b441 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.3&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,117 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Python + - Mesa + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= + % make + + The "configure" script must be call with the "--with-stlport" option. + This option permit to override the default STL headers. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case that you need to rebuild the "configure" script and/or the + "Makefile.in" files, execute the "bootstrap" script in the NeL + directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.3&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.3&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..6701b441 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.3&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,117 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Python + - Mesa + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= + % make + + The "configure" script must be call with the "--with-stlport" option. + This option permit to override the default STL headers. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case that you need to rebuild the "configure" script and/or the + "Makefile.in" files, execute the "bootstrap" script in the NeL + directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.5&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.5&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..9df4e026 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.5&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,126 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.5&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.5&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..9df4e026 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.5&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,126 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.6&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.6&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..42eb09fd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.6&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,134 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.7&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.7&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..9922d7f7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.7&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,142 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.7&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.7&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..9922d7f7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.7&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,142 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.8&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.8&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..212860ea --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.8&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,145 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.8&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.8&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..212860ea --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.8&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,145 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.9&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.9&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..f6d62901 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/INSTALL?rev=1.9&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,148 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NeL library need the following libraries : + + - STLPort 4.0 + - FreeType 2 + - Python 1.5 + + On a GNU/Linux platform you will need the following libraries and + softwares : + + - Autoconf + - Automake + - Libtool + - Lex / Flex + - Yacc / Bison + - Mesa 3.3 + + Some of the GNU/Linux distributions uses a "custom" version of Mesa which + include the last SGI's version of the glext.h file, which is good :-). + The other GNU/Linux distributions use a strict distribution of Mesa, + which migth use an older version of that file. So if you encounter + some problems during the NeL compilation concerning the GL_GLEXT_VERSION, + you should download the last version of the glext.h on SGI's website : + . + + Most of our documentation is done using Doxygen, so you might need it + to read our prose and our code documentation. If you want have nice + graphs like dependency graphs, collaboration diagrams, or graphical + class hierarchy graphs you will need Graphviz : + + - Doxygen + - Graphviz + + Most of these softwares should be already installed on your system or + provided on your installation disk. + + The given sofware or library version numbers are the ones that we are + using. We don't know if it working with other (older or more recent) + versions of these softwares or libraries. You are welcome to help us + to define more precisely these informations ;-) + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + You first need to compile STLport and FreeType libraries. It's a quite + long compilation process. + + Set up Visual C++ to find the STLPort and FreeType libraries. This + is done in the [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + The STLPort include *must* be inserted before the microsoft one or + the compiler will take microsoft STL instead of STLPort STL. + (use the arrow button to put the STLPort include at the top) + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + - Add the FreeType include directory to the "Include Files" category. + ex: D:/freetype-2.0/include + + - Add the FreeType library directory to the "Library Files" category. + ex: D:/freetype-2.0/obj + + Open the workspace file "nel.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/test/code/nel/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/test/code/nel/lib + + + 2. GNU/Linux compilation + ------------------------ + + The compilation on GNU/Linux has been done only on RedHat 6.2 with + GCC 2.96. + + In the NeL directory do : + + % ./configure --with-stlport= \ + --with-python= + % make + + The "configure" script must be call with the "--with-stlport" and + "--with-python" options. + The option "--with-stlport" allow to override the default STL headers + and the option "--with-python" tell to the configuration script, where + to find the Python headers files. + + You migth need to specify the FreeType 2 installation prefix by using + the "--with-freetype" argument (ex: "/usr/local" will look for the + header files in "/usr/local/include" and the library files in the + "/usr/local/lid/ directory). + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the NeL directory : + + % ./bootstrap + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Jamfile?rev=1.1&content-type=text/plain&sortby=log&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/Jamfile?rev=1.1&content-type=text/plain&sortby=log&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..b80a6367 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Jamfile?rev=1.1&content-type=text/plain&sortby=log&only_with_tag=HEAD/index.html @@ -0,0 +1,11 @@ +# +# Jamfile to build NeL +# + +if $(NEL_TOP) != $(DOT) +{ + SubDir NEL_TOP ; +} + +SubInclude NEL_TOP src ; +SubInclude NEL_TOP samples ; diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Jamrules?rev=1.1&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/Jamrules?rev=1.1&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..f01523dc --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Jamrules?rev=1.1&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,83 @@ + +NEL_TOP ?= $(DOT) ; + +NEL_LIB ?= $(NEL_TOP)$(SLASH)lib ; + +NEL_OBJ ?= $(NEL_TOP)$(SLASH)obj ; + +HDRS += $(NEL_TOP)$(SLASH)include ; + +HDRS += E:/external/STLport-4.5/stlport s:/EXTERNAL/LIBXML2-2.4.5/include ; + +C++BASEFLAGS = $(C++FLAGS) /W3 /GX /GR /D "_MBCS" /D "_LIB" /D "WIN32" ; + +LINKFLAGS += /LIBPATH:E:/external/STLport-4.5/lib /subsystem:windows ; + +LINKLIBS = User32.lib Gdi32.lib ; + +# d /nologo /MDd /W3 /GR /GX /Zi /Gm /Gi /Od /Gf /D "_MBCS" /D "_LIB" /D "WIN32" /D "_DEBUG" /D "__STL_DEBUG" /Fp"../obj/Debug/misc.pch" /Yu"stdmisc.h" /Fo"../obj/Debug/" /Fd"../obj/Debug/" /FD /GZ /c +# df /nologo /MDd /W3 /GR /GX /Zi /Gm /Gi /Od /Ob1 /Gf /D "_MBCS" /D "_LIB" /D "WIN32" /D "_DEBUG" /D "NL_DEBUG_FAST" /Fp"../obj/DebugFast/misc.pch" /Yu"stdmisc.h" /Fo"../obj/DebugFast/" /Fd"../obj/DebugFast/" /FD /GZ /c +# rd /nologo /MD /W3 /GR /GX /Zi /O2 /D "_MBCS" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "NL_RELEASE_DEBUG" /Fp"../obj/ReleaseDebug/misc.pch" /Yu"stdmisc.h" /Fo"../obj/ReleaseDebug/" /Fd"../obj/ReleaseDebug/" /FD /c +# r /nologo /MD /W3 /GR /GX /O2 /D "_MBCS" /D "_LIB" /D "WIN32" /D "NDEBUG" /Fp"../obj/Release/misc.pch" /Yu"stdmisc.h" /Fo"../obj/Release/" /Fd"../obj/Release/" /FD /c + +rule NelLibrary +{ + LOCATE_TARGET = $(NEL_OBJ)$(SLASH)jam_debug ; + SOURCE_GRIST = debug ; + C++FLAGS = $(C++BASEFLAGS) /MDd /Od /Zi /D "_DEBUG" /D "__STL_DEBUG" /Fd$(LOCATE_TARGET)$(SLASH) ; + Library $(NEL_LIB)$(SLASH)jam_$(<)_debug : $(>) ; + + LOCATE_TARGET = $(NEL_OBJ)$(SLASH)jam_debug_fast ; + SOURCE_GRIST = debug_fast ; + C++FLAGS = $(C++BASEFLAGS) /MDd /Od /Zi /Ob1 /D "_DEBUG" /D "NL_DEBUG_FAST" /Fd$(LOCATE_TARGET)$(SLASH) ; + Library $(NEL_LIB)$(SLASH)$(SLASH)jam_$(<)_debug_fast : $(>) ; + + LOCATE_TARGET = $(NEL_OBJ)$(SLASH)jam_release_debug ; + SOURCE_GRIST = release_debug ; + C++FLAGS = $(C++BASEFLAGS) /MD /O2 /Zi /D "NDEBUG" /D "NL_RELEASE_DEBUG" /Fd$(LOCATE_TARGET)$(SLASH) ; + Library $(NEL_LIB)$(SLASH)$(SLASH)jam_$(<)_release_debug : $(>) ; + + LOCATE_TARGET = $(NEL_OBJ)$(SLASH)jam_release ; + SOURCE_GRIST = release ; + C++FLAGS = $(C++BASEFLAGS) /MD /O2 /D "NDEBUG" ; + Library $(NEL_LIB)$(SLASH)$(SLASH)jam_$(<) : $(>) ; +} + +rule NelMain +{ + LOCATE_TARGET = $(SEARCH_SOURCE)$(SLASH)jam_debug ; + SOURCE_GRIST = debug ; + C++FLAGS = $(C++BASEFLAGS) /MDd /Od /Zi /D "_DEBUG" /D "__STL_DEBUG" /Fd$(LOCATE_TARGET)$(SLASH) /D "_WINDOWS" ; + Main $(<)_debug : $(>) ; + + LOCATE_TARGET = $(SEARCH_SOURCE)$(SLASH)jam_debug_fast ; + SOURCE_GRIST = debug_fast ; + C++FLAGS = $(C++BASEFLAGS) /MDd /Od /Zi /Ob1 /D "_DEBUG" /D "NL_DEBUG_FAST" /Fd$(LOCATE_TARGET)$(SLASH) /D "_WINDOWS" ; + Main $(<)_debug_fast : $(>) ; + + LOCATE_TARGET = $(SEARCH_SOURCE)$(SLASH)jam_release_debug ; + SOURCE_GRIST = release_debug ; + C++FLAGS = $(C++BASEFLAGS) /MD /O2 /Zi /D "NDEBUG" /D "NL_RELEASE_DEBUG" /Fd$(LOCATE_TARGET)$(SLASH) /D "_WINDOWS" ; + Main $(<)_release_debug : $(>) ; + + LOCATE_TARGET = $(SEARCH_SOURCE)$(SLASH)jam_release ; + SOURCE_GRIST = release ; + C++FLAGS = $(C++BASEFLAGS) /MD /O2 /D "NDEBUG" /D "_WINDOWS" ; + Main $(<) : $(>) ; +} + +rule NelLinkLibraries +{ + SOURCE_GRIST = debug ; + LinkLibraries $(<)_debug : $(NEL_LIB)$(SLASH)$(>)_debug ; + + SOURCE_GRIST = debug_fast ; + LinkLibraries $(<)_debug_fast : $(NEL_LIB)$(SLASH)$(>)_debug_fast ; + + SOURCE_GRIST = release_debug ; + LinkLibraries $(<)_release_debug : $(NEL_LIB)$(SLASH)$(>)_release_debug ; + + SOURCE_GRIST = release ; + LinkLibraries $(<) : $(NEL_LIB)$(SLASH)$(>) ; +} + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.3&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.3&sortby=date new file mode 100644 index 00000000..d572e754 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.3&sortby=date @@ -0,0 +1,15 @@ +# +# $Id: Makefile.am,v 1.3 2000/11/23 15:34:39 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure libtool config.guess \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh missing mkinstalldirs ltmain.sh \ + include/nelconfig.h include/nelconfig.h.in \ + include/nel/nelconfig.h + +DISTCLEANFILES = include/stamp-h include/stamp-h.in + +SUBDIRS = include src + +# End of Makefile.am diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.6&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.6&sortby=date new file mode 100644 index 00000000..9a5d2486 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.6&sortby=date @@ -0,0 +1,24 @@ +# +# $Id: Makefile.am,v 1.6 2001/05/02 17:11:33 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure libtool config.guess \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh missing mkinstalldirs ltmain.sh \ + include/nelconfig.h include/nelconfig.h.in \ + include/nel/nelconfig.h + +DISTCLEANFILES = include/stamp-h include/stamp-h.in + +SUBDIRS = include src + +bin_SCRIPTS = nel-config + +EXTRA_DIST = nel.dsw + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.9&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.9&sortby=date new file mode 100644 index 00000000..fbf2b6a5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?content-type=text/plain&rev=1.9&sortby=date @@ -0,0 +1,23 @@ +# +# $Id: Makefile.am,v 1.9 2002/05/14 13:33:59 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure libtool config.guess \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh missing mkinstalldirs ltmain.sh \ + include/nelconfig.h include/nelconfig.h.in \ + include/nel/nelconfig.h + +DISTCLEANFILES = include/stamp-h include/stamp-h.in + +SUBDIRS = include src + +bin_SCRIPTS = nel-config + +EXTRA_DIST = acconfig.h nel.dsw bootstrap doc tools + +dist-hook: + find $(distdir) -name CVS -print | xargs rm -fr + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.1&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.1&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..cc6ff348 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.1&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,11 @@ +# +# $Id: Makefile.am,v 1.1 2000/10/06 14:17:35 valignat Exp $ +# + +MAINTAINERCLEANFILES= Makefile.in configure libtool config.guess \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh missing mkinstalldirs + +SUBDIRS= include src lib doc + +# EOF diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.2&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.2&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..1fefc5ab --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.2&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,15 @@ +# +# $Id: Makefile.am,v 1.2 2000/11/23 11:51:35 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure libtool config.guess \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh missing mkinstalldirs ltmain.sh \ + include/nelconfig.h include/nelconfig.h.in \ + include/nel/nelconfig.h + +DISTCLEANFILES = include/stamp-h include/stamp-h.in + +SUBDIRS = src + +# End of Makefile.am diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.4&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.4&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..0d8b6e14 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.4&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,18 @@ +# +# $Id: Makefile.am,v 1.4 2000/11/23 16:50:07 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure libtool config.guess \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh missing mkinstalldirs ltmain.sh \ + include/nelconfig.h include/nelconfig.h.in \ + include/nel/nelconfig.h + +DISTCLEANFILES = include/stamp-h include/stamp-h.in + +SUBDIRS = include src + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + +# End of Makefile.am diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.5&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.5&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..158cc51b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.5&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,22 @@ +# +# $Id: Makefile.am,v 1.5 2000/11/24 14:13:35 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure libtool config.guess \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh missing mkinstalldirs ltmain.sh \ + include/nelconfig.h include/nelconfig.h.in \ + include/nel/nelconfig.h + +DISTCLEANFILES = include/stamp-h include/stamp-h.in + +SUBDIRS = include src + +EXTRA_DIST = nel.dsw + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.8&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.8&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..466c7135 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/Makefile.am?rev=1.8&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,23 @@ +# +# $Id: Makefile.am,v 1.8 2002/03/19 17:42:48 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure libtool config.guess \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh missing mkinstalldirs ltmain.sh \ + include/nelconfig.h include/nelconfig.h.in \ + include/nel/nelconfig.h + +DISTCLEANFILES = include/stamp-h include/stamp-h.in + +SUBDIRS = include src + +bin_SCRIPTS = nel-config + +EXTRA_DIST = acconfig.h nel.dsw bootstrap doc + +dist-hook: + find $(distdir) -name CVS -print | xargs rm -fr + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.1&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.1&sortby=author new file mode 100644 index 00000000..496a72d3 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.1&sortby=author @@ -0,0 +1,6 @@ + +No news, good news ... + +Currently, this file exist to get rid of an Automake error. The content of +that file will be what it should be at the next release. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.10&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.10&sortby=author new file mode 100644 index 00000000..4a50d975 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.10&sortby=author @@ -0,0 +1,89 @@ +June 6 2002 +=========== + +* NLMISC: Added getFileSize(); + +* NLMISC: Now cut .log when they are greater then 5 mega bits; + +* NLNET: Added custumizable variable display using DisplayedVariables in the config file. + +* NLMISC: Added += in the config file to append values in an array. + +May 27 2002 +=========== + +* NLNET: -I command line and IWinParam config file variable to start services in minimized. + +* NLNET: getWinDisplayerInfo() command to have info about size and pos (copy/paste into .cfg) + +May 21 2002 +=========== + +* NLNET: send() receive() and serial() are 3 times faster. + +* NLNET: layer 2 was removed because not useful and take some CPU for nothing. + +* NLMISC: CFastMem::memcpy() copies a memory block as fast as possible depending of the OS and + of the CPU. + +* NLMISC: CSystemInfo class contains info on the processor type (MMX, SSE, and so on). + +April 30 2002 +============= + +* NLNET: Added 3 new variables "NegFiltersDebug" and "NegFiltersInfo" (array of string) that + call addNegativeFilter at the init of the service. You could change these variables + in realtime with a notepad. + +* NLMISC: CPath::addSeachPath() class now filter CVS directory and *.log files. + + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.6&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.6&sortby=rev new file mode 100644 index 00000000..ef72f389 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?content-type=text/plain&rev=1.6&sortby=rev @@ -0,0 +1,50 @@ + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.1&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.1&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..496a72d3 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.1&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,6 @@ + +No news, good news ... + +Currently, this file exist to get rid of an Automake error. The content of +that file will be what it should be at the next release. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.11&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.11&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..a679a9e8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.11&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,94 @@ +June 12 2002 +============ + +* NLNET: Added custumizable command with button using DisplayedVariables in the config file. + +June 6 2002 +=========== + +* NLMISC: Added getFileSize(); + +* NLMISC: Now cut .log when they are greater then 5 mega bits; + +* NLNET: Added custumizable variable display using DisplayedVariables in the config file. + +* NLMISC: Added += in the config file to append values in an array. + +May 27 2002 +=========== + +* NLNET: -I command line and IWinParam config file variable to start services in minimized. + +* NLNET: getWinDisplayerInfo() command to have info about size and pos (copy/paste into .cfg) + +May 21 2002 +=========== + +* NLNET: send() receive() and serial() are 3 times faster. + +* NLNET: layer 2 was removed because not useful and take some CPU for nothing. + +* NLMISC: CFastMem::memcpy() copies a memory block as fast as possible depending of the OS and + of the CPU. + +* NLMISC: CSystemInfo class contains info on the processor type (MMX, SSE, and so on). + +April 30 2002 +============= + +* NLNET: Added 3 new variables "NegFiltersDebug" and "NegFiltersInfo" (array of string) that + call addNegativeFilter at the init of the service. You could change these variables + in realtime with a notepad. + +* NLMISC: CPath::addSeachPath() class now filter CVS directory and *.log files. + + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.11&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.11&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..a679a9e8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.11&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,94 @@ +June 12 2002 +============ + +* NLNET: Added custumizable command with button using DisplayedVariables in the config file. + +June 6 2002 +=========== + +* NLMISC: Added getFileSize(); + +* NLMISC: Now cut .log when they are greater then 5 mega bits; + +* NLNET: Added custumizable variable display using DisplayedVariables in the config file. + +* NLMISC: Added += in the config file to append values in an array. + +May 27 2002 +=========== + +* NLNET: -I command line and IWinParam config file variable to start services in minimized. + +* NLNET: getWinDisplayerInfo() command to have info about size and pos (copy/paste into .cfg) + +May 21 2002 +=========== + +* NLNET: send() receive() and serial() are 3 times faster. + +* NLNET: layer 2 was removed because not useful and take some CPU for nothing. + +* NLMISC: CFastMem::memcpy() copies a memory block as fast as possible depending of the OS and + of the CPU. + +* NLMISC: CSystemInfo class contains info on the processor type (MMX, SSE, and so on). + +April 30 2002 +============= + +* NLNET: Added 3 new variables "NegFiltersDebug" and "NegFiltersInfo" (array of string) that + call addNegativeFilter at the init of the service. You could change these variables + in realtime with a notepad. + +* NLMISC: CPath::addSeachPath() class now filter CVS directory and *.log files. + + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.12&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.12&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..4b790db0 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.12&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,95 @@ +June 12 2002 +============ + +* NLNET: Added custumizable command with button using DisplayedVariables in the config file. +* NLMISC: Can lod config file inside of a bigfile using CIFile + +June 6 2002 +=========== + +* NLMISC: Added getFileSize(); + +* NLMISC: Now cut .log when they are greater then 5 mega bits; + +* NLNET: Added custumizable variable display using DisplayedVariables in the config file. + +* NLMISC: Added += in the config file to append values in an array. + +May 27 2002 +=========== + +* NLNET: -I command line and IWinParam config file variable to start services in minimized. + +* NLNET: getWinDisplayerInfo() command to have info about size and pos (copy/paste into .cfg) + +May 21 2002 +=========== + +* NLNET: send() receive() and serial() are 3 times faster. + +* NLNET: layer 2 was removed because not useful and take some CPU for nothing. + +* NLMISC: CFastMem::memcpy() copies a memory block as fast as possible depending of the OS and + of the CPU. + +* NLMISC: CSystemInfo class contains info on the processor type (MMX, SSE, and so on). + +April 30 2002 +============= + +* NLNET: Added 3 new variables "NegFiltersDebug" and "NegFiltersInfo" (array of string) that + call addNegativeFilter at the init of the service. You could change these variables + in realtime with a notepad. + +* NLMISC: CPath::addSeachPath() class now filter CVS directory and *.log files. + + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.13&content-type=text/plain&sortby=rev&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.13&content-type=text/plain&sortby=rev&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..3f453a89 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.13&content-type=text/plain&sortby=rev&only_with_tag=HEAD/index.html @@ -0,0 +1,100 @@ +June 20 2002 +============ + +* NLMISC: Added a i18n sample + +June 12 2002 +============ + +* NLNET: Added custumizable command with button using DisplayedVariables in the config file. +* NLMISC: Can lod config file inside of a bigfile using CIFile + +June 6 2002 +=========== + +* NLMISC: Added getFileSize(); + +* NLMISC: Now cut .log when they are greater then 5 mega bits; + +* NLNET: Added custumizable variable display using DisplayedVariables in the config file. + +* NLMISC: Added += in the config file to append values in an array. + +May 27 2002 +=========== + +* NLNET: -I command line and IWinParam config file variable to start services in minimized. + +* NLNET: getWinDisplayerInfo() command to have info about size and pos (copy/paste into .cfg) + +May 21 2002 +=========== + +* NLNET: send() receive() and serial() are 3 times faster. + +* NLNET: layer 2 was removed because not useful and take some CPU for nothing. + +* NLMISC: CFastMem::memcpy() copies a memory block as fast as possible depending of the OS and + of the CPU. + +* NLMISC: CSystemInfo class contains info on the processor type (MMX, SSE, and so on). + +April 30 2002 +============= + +* NLNET: Added 3 new variables "NegFiltersDebug" and "NegFiltersInfo" (array of string) that + call addNegativeFilter at the init of the service. You could change these variables + in realtime with a notepad. + +* NLMISC: CPath::addSeachPath() class now filter CVS directory and *.log files. + + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.2&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.2&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..4d68b965 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.2&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,21 @@ + +20 marth 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + string without printf() like function. + ex: int val = 100; string res = toString ("0x%x", val); + +15 marth 2002 +============= + +* NLMISC: CCommand now manages spaces in parameter putting "" around parameters +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other service + +8 marth 2002 +============= + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.3&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.3&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..784e5d00 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.3&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,26 @@ + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..89628b44 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,32 @@ + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.4&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.4&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..89628b44 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.4&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,32 @@ + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.5&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.5&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..91857cf4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.5&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,40 @@ + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.6&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.6&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..ef72f389 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.6&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,50 @@ + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.8&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.8&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..06878d82 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.8&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,71 @@ +May 21 2002 +=========== + +* NLNET: send() receive() and serial() are 3 times faster. + +* NLNET: layer 2 was removed because not useful and take some CPU for nothing. + +* NLMISC: CFastMem::memcpy() copies a memory block as fast as possible depending of the OS and + of the CPU. + +* NLMISC: CSystemInfo class contains info on the processor type (MMX, SSE, and so on). + +April 30 2002 +============= + +* NLNET: Added 3 new variables "NegFiltersDebug" and "NegFiltersInfo" (array of string) that + call addNegativeFilter at the init of the service. You could change these variables + in realtime with a notepad. + +* NLMISC: CPath::addSeachPath() class now filter CVS directory and *.log files. + + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.9&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.9&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..e9cc2df5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/NEWS?rev=1.9&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,78 @@ +May 27 2002 +=========== + +* NLNET: -I command line and IWinParam config file variable to start services in minimized. + +* NLNET: getWinDisplayerInfo() command to have info about size and pos (copy/paste into .cfg) + +May 21 2002 +=========== + +* NLNET: send() receive() and serial() are 3 times faster. + +* NLNET: layer 2 was removed because not useful and take some CPU for nothing. + +* NLMISC: CFastMem::memcpy() copies a memory block as fast as possible depending of the OS and + of the CPU. + +* NLMISC: CSystemInfo class contains info on the processor type (MMX, SSE, and so on). + +April 30 2002 +============= + +* NLNET: Added 3 new variables "NegFiltersDebug" and "NegFiltersInfo" (array of string) that + call addNegativeFilter at the init of the service. You could change these variables + in realtime with a notepad. + +* NLMISC: CPath::addSeachPath() class now filter CVS directory and *.log files. + + +April 23 2002 +============= + +* NLNET: Added a new variable "StartCommands" (array of string) that execute these commands + at the startup of the service (after the init() and before the first update()). + +* NLMISC: Added a new variable "RootConfigFilename" (string) that is a config filename that + will be read. It's used to set common variable in a common file for all services. + + +March 28 2002 +============= + +* NLNET: Added a new command "serviceInfo" that displays usefull informations on the services. + +* samples: Added a new udp sample that contains a client and server (service) that tests UDP + connection and create some stat files. + +March 23 2002 +============= + +* NLNET: IService5 and IService are now merged in IService class in service.cpp and service.h. + Take a look in the header to see differences. + +March 20 2002 +============= + +* NLMISC: New toString() function in common.h that enables you to create + a string without using a printf()-like function. + ex: int val = 100; string res = toString ("0x%x", val); + +March 15 2002 +============= + +* NLMISC: CCommand now manages spaces within parameters, putting "" around parameters. + +* NLMISC: CHTimer: Hierarchical time that allows to measure accurately the performance of routines, + and displays results hierarchically. To time a piece of code, just declare a static. + CHTimer object and encapsulate code between calls to before() and after() methods. + +* NLNET: New msgin and msgout commands in services to simulate incoming + messages from a service and send messages to other services + +March 8 2002 +============ + +* NLNET: Add CTransportClass class that enables sending classes between + services with different class parameters. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/README?content-type=text/plain&rev=1.1&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/README?content-type=text/plain&rev=1.1&sortby=rev new file mode 100644 index 00000000..da8ca027 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/README?content-type=text/plain&rev=1.1&sortby=rev @@ -0,0 +1,34 @@ +Introduction +------------ + +NeL is a complete platform aimed at running massively multi-user +entertainment in a 3D environment over the Internet. + +The NeL library is further divided into a few libraries: network, ai, 3d +and misc. If you want to use ai, 3d or network you also need to use the +misc part of the library. Ai, 3d and network are totally independant from +each other so you can use only the parts you really need in your project. + +If you want know more about the library content and functionalities, you +should take a look on the documents present in the doc directory. + +NeL is currently developped and tested under GNU/Linux and Windows +environments. + + +License +------- + +NeL is a Free Software project under the GNU General Public License, +which means all its code is available for everyone to download, examine, +use, modify, and distribute, subject to the usual restrictions attached +to any GPL software. If you are not familiar with the GPL, see the COPYING +file for for more details on license terms and other legal issues. + + +Installation +------------ + +See the INSTALL file for the requirements and installation instructions. + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/README?rev=1.2&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/README?rev=1.2&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..c1bcbf98 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/README?rev=1.2&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,34 @@ +Introduction +------------ + +NeL is a software platform for creating and running massively multi-user +entertainment in a 3D environment over the Internet. + +The NeL library is further divided into specific modules: network, ai, 3d +and misc. If you want to use any of these, you also need to use the misc +part of the library, but ai, 3d and network are totally independant from +each other so you can use only the parts you really need in your project. + +If you want know more about the library content and functionalities, you +should take a look on the documents present in the doc directory. + +NeL is currently developped and tested under GNU/Linux and Windows +environments. + + +License +------- + +NeL is a Free Software project under the GNU General Public License, +which means all its code is available for everyone to download, examine, +use, modify, and distribute, subject to the usual restrictions attached +to any GPL software. If you are not familiar with the GPL, see the COPYING +file for for more details on license terms and other legal issues. + + +Installation +------------ + +See the INSTALL file for the requirements and installation instructions. + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?content-type=text/plain&only_with_tag=MAIN&rev=1.6&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?content-type=text/plain&only_with_tag=MAIN&rev=1.6&sortby=rev new file mode 100644 index 00000000..69a17d15 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?content-type=text/plain&only_with_tag=MAIN&rev=1.6&sortby=rev @@ -0,0 +1,15 @@ +We would like to thank these people : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure script improvement and advice. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advice. +Guillaume Morin + for PPC port +Aurelien Delaitre + for GNU/Linux fixes +And all NeL users ... diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.1&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.1&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..3e253612 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.1&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html @@ -0,0 +1,11 @@ +We would like to thanks these peoples : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure srcipt improvement and advices. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. + +And all NeL users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.1&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.1&sortby=author new file mode 100644 index 00000000..3e253612 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.1&sortby=author @@ -0,0 +1,11 @@ +We would like to thanks these peoples : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure srcipt improvement and advices. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. + +And all NeL users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.2&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.2&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..9ed69d34 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.2&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,13 @@ +We would like to thanks these peoples : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure srcipt improvement and advices. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advices. + +And all NeL users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.2&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.2&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..9ed69d34 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.2&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html @@ -0,0 +1,13 @@ +We would like to thanks these peoples : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure srcipt improvement and advices. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advices. + +And all NeL users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.3&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.3&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..7e7e4598 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.3&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,14 @@ +We would like to thanks these peoples : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure script improvement and advices. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advices. +Guillaume Morin + for PPC port + +And all NeL users ... diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..beea8ac2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,14 @@ +We would like to thanks these people : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure script improvement and advice. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advice. +Guillaume Morin + for PPC port + +And all NeL users ... diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..beea8ac2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&content-type=text/plain&sortby=rev&only_with_tag=MAIN/index.html @@ -0,0 +1,14 @@ +We would like to thanks these people : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure script improvement and advice. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advice. +Guillaume Morin + for PPC port + +And all NeL users ... diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&sortby=rev new file mode 100644 index 00000000..beea8ac2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.4&sortby=rev @@ -0,0 +1,14 @@ +We would like to thanks these people : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure script improvement and advice. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advice. +Guillaume Morin + for PPC port + +And all NeL users ... diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.5&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.5&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..0a8c5fb8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.5&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,14 @@ +We would like to thank these people : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure script improvement and advice. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advice. +Guillaume Morin + for PPC port + +And all NeL users ... diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.5&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.5&sortby=rev new file mode 100644 index 00000000..0a8c5fb8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/THANKS?rev=1.5&sortby=rev @@ -0,0 +1,14 @@ +We would like to thank these people : + +Leighton Haynes + for X11 fullscreen support. +Loic Dachary + for the configure script improvement and advice. +Dan Erikson + for X11 improved mouse management and mouse button and mouse wheel support. +Vincent Caron + for his help and advice. +Guillaume Morin + for PPC port + +And all NeL users ... diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.1&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.1&sortby=date new file mode 100644 index 00000000..3a18a6a5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.1&sortby=date @@ -0,0 +1,13 @@ + + +/* + * 1 displays debug messages on standard output, + * 0 to suppress them. + */ +#undef NEL_DEFAULT_DISPLAYER + +/* + * 1 prints debug messages in ./log.log, + * 0 to suppress them. + */ +#undef NEL_LOG_IN_FILE diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.2&content-type=text/plain&sortby=date&only_with_tag=georges_v2/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.2&content-type=text/plain&sortby=date&only_with_tag=georges_v2/index.html new file mode 100644 index 00000000..c9cce509 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.2&content-type=text/plain&sortby=date&only_with_tag=georges_v2/index.html @@ -0,0 +1,15 @@ + + +/* + * 1 displays debug messages on standard output, + * 0 to suppress them. + */ +#undef NEL_DEFAULT_DISPLAYER + +/* + * 1 prints debug messages in ./log.log, + * 0 to suppress them. + */ +#undef NEL_LOG_IN_FILE + +#undef HAVE_X86 diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.2&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.2&sortby=rev new file mode 100644 index 00000000..c9cce509 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acconfig.h?rev=1.2&sortby=rev @@ -0,0 +1,15 @@ + + +/* + * 1 displays debug messages on standard output, + * 0 to suppress them. + */ +#undef NEL_DEFAULT_DISPLAYER + +/* + * 1 prints debug messages in ./log.log, + * 0 to suppress them. + */ +#undef NEL_LOG_IN_FILE + +#undef HAVE_X86 diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&hideattic=0&rev=1.14&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&hideattic=0&rev=1.14&sortby=rev new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&hideattic=0&rev=1.14&sortby=rev @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&rev=1.12&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&rev=1.12&sortby=date new file mode 100644 index 00000000..9184a376 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&rev=1.12&sortby=date @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.12 2002/03/29 10:19:10 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&rev=1.5&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&rev=1.5&sortby=date new file mode 100644 index 00000000..68c8395e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?content-type=text/plain&rev=1.5&sortby=date @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.5 2002/01/28 14:40:26 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIBS="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIBS="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.1&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.1&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..84166845 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.1&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.1 2002/01/07 16:09:52 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +dnl NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.1&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.1&sortby=author new file mode 100644 index 00000000..84166845 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.1&sortby=author @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.1 2002/01/07 16:09:52 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +dnl NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.10&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.10&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..cd93eb5c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.10&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.10 2002/03/21 10:54:37 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.11&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.11&sortby=author new file mode 100644 index 00000000..49d5b40b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.11&sortby=author @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.11 2002/03/26 14:37:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.12&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.12&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..9184a376 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.12&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.12 2002/03/29 10:19:10 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.13&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.13&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..d54d6b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.13&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.13 2002/04/16 12:01:39 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.13&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.13&sortby=author new file mode 100644 index 00000000..d54d6b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.13&sortby=author @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.13 2002/04/16 12:01:39 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author&only_with_tag=georges_v2/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author&only_with_tag=georges_v2/index.html new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author&only_with_tag=georges_v2/index.html @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.14&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.2&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.2&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..deb5def1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.2&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.2 2002/01/08 10:09:35 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.2&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.2&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..deb5def1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.2&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.2 2002/01/08 10:09:35 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.3&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.3&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..adad0b43 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.3&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.3 2002/01/10 14:33:19 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.3&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.3&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..adad0b43 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.3&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.3 2002/01/10 14:33:19 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&sortby=author new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.4&sortby=author @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.7&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.7&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..a7fcf13f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.7&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,1054 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.7 2002/01/29 13:21:42 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.9&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.9&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..999d4822 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.9&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,1046 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.9 2002/03/19 17:42:48 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.9&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.9&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..999d4822 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/acinclude.m4?rev=1.9&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,1046 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.9 2002/03/19 17:42:48 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..fdcef3ae --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html @@ -0,0 +1,10 @@ +#! /bin/sh + +set -x +rm -f config.cache +aclocal +libtoolize --force --copy +autoheader +automake --gnu --add-missing --copy +autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..fdcef3ae --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,10 @@ +#! /bin/sh + +set -x +rm -f config.cache +aclocal +libtoolize --force --copy +autoheader +automake --gnu --add-missing --copy +autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&sortby=log new file mode 100644 index 00000000..fdcef3ae --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.1&sortby=log @@ -0,0 +1,10 @@ +#! /bin/sh + +set -x +rm -f config.cache +aclocal +libtoolize --force --copy +autoheader +automake --gnu --add-missing --copy +autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..e8e3c67d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html @@ -0,0 +1,12 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +aclocal \ +&& libtoolize --force --copy \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=nel_0_3/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=nel_0_3/index.html new file mode 100644 index 00000000..e8e3c67d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.2&content-type=text/plain&sortby=log&only_with_tag=nel_0_3/index.html @@ -0,0 +1,12 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +aclocal \ +&& libtoolize --force --copy \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.3&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.3&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..df97fb95 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.3&content-type=text/plain&sortby=log&only_with_tag=MAIN/index.html @@ -0,0 +1,19 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +# This is to avoid atomake to complain about the fact that there is no +# ChangeLog File at the moment +if test ! -f ChangeLog +then + touch ChangeLog +fi + +aclocal \ +&& libtoolize --force --copy \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.4&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.4&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..a868ad3e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.4&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,18 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +# This is to avoid atomake to complain about the fact that there is no +# ChangeLog File at the moment +if test ! -f ChangeLog +then + touch ChangeLog +fi + +libtoolize --force --copy +&& aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.5&hideattic=0&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.5&hideattic=0&sortby=rev new file mode 100644 index 00000000..cceb64ef --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.5&hideattic=0&sortby=rev @@ -0,0 +1,18 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +# This is to avoid atomake to complain about the fact that there is no +# ChangeLog File at the moment +if test ! -f ChangeLog +then + touch ChangeLog +fi + +libtoolize --force --copy \ +&& aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.5&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.5&sortby=author new file mode 100644 index 00000000..cceb64ef --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/bootstrap?rev=1.5&sortby=author @@ -0,0 +1,18 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +# This is to avoid atomake to complain about the fact that there is no +# ChangeLog File at the moment +if test ! -f ChangeLog +then + touch ChangeLog +fi + +libtoolize --force --copy \ +&& aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.50&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.50&sortby=author new file mode 100644 index 00000000..44ed24ce --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.50&sortby=author @@ -0,0 +1,617 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.50 2001/08/09 15:40:37 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.51&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.51&sortby=date new file mode 100644 index 00000000..0b6f2b84 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.51&sortby=date @@ -0,0 +1,624 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.51 2001/10/08 14:52:19 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.6&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.6&sortby=log new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?content-type=text/plain&rev=1.6&sortby=log @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.10&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.10&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.10&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.17&content-type=text/plain&sortby=log&only_with_tag=proto_0_1/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.17&content-type=text/plain&sortby=log&only_with_tag=proto_0_1/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.17&content-type=text/plain&sortby=log&only_with_tag=proto_0_1/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.31&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.31&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..758e89ee --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.31&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,322 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.31 2001/04/03 12:32:21 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nel,$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING("for Python header files") +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT("ok")], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING("for STLPort") +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT("yes")], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING("for FreeType 2 installation") +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT("yes")], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING("for OpenGL installation") +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT("yes")], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT("yes")], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.32&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.32&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..f23d514c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.32&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,378 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.32 2001/04/10 13:44:50 loic_at_senga.org Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nel,$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING("for Python header files") +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT("ok")], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING("for STLPort") +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT("yes")], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING("for FreeType 2 installation") +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT("yes")], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING("for OpenGL installation") +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT("yes")], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT("yes")], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..ec3eeb95 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,379 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.33 2001/04/10 14:22:58 loic_at_senga.org Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nel,$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..ec3eeb95 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,379 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.33 2001/04/10 14:22:58 loic_at_senga.org Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nel,$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&sortby=date new file mode 100644 index 00000000..ec3eeb95 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.33&sortby=date @@ -0,0 +1,379 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.33 2001/04/10 14:22:58 loic_at_senga.org Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nel,$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..cf2542f1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,403 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.34 2001/04/12 12:41:49 dayta_at_ucc.gu.uwa.edu.au Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..cf2542f1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,403 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.34 2001/04/12 12:41:49 dayta_at_ucc.gu.uwa.edu.au Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&sortby=log new file mode 100644 index 00000000..cf2542f1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.34&sortby=log @@ -0,0 +1,403 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.34 2001/04/12 12:41:49 dayta_at_ucc.gu.uwa.edu.au Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..92c00081 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,403 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.35 2001/05/02 14:25:47 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..92c00081 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,403 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.35 2001/05/02 14:25:47 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&sortby=date new file mode 100644 index 00000000..92c00081 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.35&sortby=date @@ -0,0 +1,403 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.35 2001/05/02 14:25:47 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.36&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.36&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..d539c48f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.36&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,404 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.36 2001/05/02 17:11:33 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface's REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface's AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC's "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.37&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.37&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..153902e4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.37&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,447 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.37 2001/06/13 18:05:00 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/3d/tmp/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.37&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.37&sortby=date new file mode 100644 index 00000000..153902e4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.37&sortby=date @@ -0,0 +1,447 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.37 2001/06/13 18:05:00 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/3d/tmp/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.38&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.38&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..a727d34a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.38&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,453 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.38 2001/06/18 12:46:14 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl The src disrectory is put in the include search path to be able to +dnl include internals headers from anywere in code without using relativ +dnl path +CFLAGS="$CFLAGS -I$srcdir/src" +CXXFLAGS="$CXXFLAGS -I$srcdir/src" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.38&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.38&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..a727d34a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.38&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,453 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.38 2001/06/18 12:46:14 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl The src disrectory is put in the include search path to be able to +dnl include internals headers from anywere in code without using relativ +dnl path +CFLAGS="$CFLAGS -I$srcdir/src" +CXXFLAGS="$CXXFLAGS -I$srcdir/src" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..42bdc5ee --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,454 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.39 2001/06/21 16:34:44 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl The src disrectory is put in the include search path to be able to +dnl include internals headers from anywere in code without using relativ +dnl path +CFLAGS="$CFLAGS -I$srcdir/src" +CXXFLAGS="$CXXFLAGS -I$srcdir/src" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..42bdc5ee --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,454 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.39 2001/06/21 16:34:44 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl The src disrectory is put in the include search path to be able to +dnl include internals headers from anywere in code without using relativ +dnl path +CFLAGS="$CFLAGS -I$srcdir/src" +CXXFLAGS="$CXXFLAGS -I$srcdir/src" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&sortby=log new file mode 100644 index 00000000..42bdc5ee --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.39&sortby=log @@ -0,0 +1,454 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.39 2001/06/21 16:34:44 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl The src disrectory is put in the include search path to be able to +dnl include internals headers from anywere in code without using relativ +dnl path +CFLAGS="$CFLAGS -I$srcdir/src" +CXXFLAGS="$CXXFLAGS -I$srcdir/src" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&content-type=text/plain&sortby=author/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&sortby=date new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.4&sortby=date @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.40&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.40&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..7707d99f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.40&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,461 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.40 2001/07/27 16:06:15 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl The src disrectory is put in the include search path to be able to +dnl include internals headers from anywere in code without using relativ +dnl path +CFLAGS="$CFLAGS -I$srcdir/src" +CXXFLAGS="$CXXFLAGS -I$srcdir/src" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + [ AC_MSG_RESULT(disable NEL PACS.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS pacs" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.41&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.41&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..fcff4ffe --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.41&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,454 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.41 2001/07/27 17:25:40 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + [ AC_MSG_RESULT(disable NEL PACS.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS pacs" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.41&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.41&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..fcff4ffe --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.41&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,454 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.41 2001/07/27 17:25:40 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + [ AC_MSG_RESULT(disable NEL PACS.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS pacs" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.42&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.42&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..d7e52904 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.42&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,458 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.42 2001/08/01 09:20:08 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + [ AC_MSG_RESULT(disable NEL PACS.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS pacs" ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --disable-ai disable compilation and install of NeL AI.], + [ AC_MSG_RESULT(disable NEL AI.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.43&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.43&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..64016521 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.43&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,458 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.43 2001/08/01 09:22:31 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( network, + [ --disable-network disable compilation and install of NeL Network.], + [ AC_MSG_RESULT(disable NEL Network.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ AC_MSG_RESULT(disable NEL 3D.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + [ AC_MSG_RESULT(disable NEL PACS.) ], + [ NEL_SUBDIRS="$NEL_SUBDIRS pacs" ] ) + +dnl AI library +dnl AC_ARG_ENABLE( ai, +dnl [ --disable-ai disable compilation and install of NeL AI.], +dnl [ AC_MSG_RESULT(disable NEL AI.) ], +dnl [ NEL_SUBDIRS="$NEL_SUBDIRS ai" ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.44&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.44&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..10d4e35e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.44&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,485 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.44 2001/08/01 10:38:58 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + [ if test $enableval = "no"; + then + AC_MSG_RESULT(disable NEL Network.) + else + NEL_SUBDIRS="$NEL_SUBDIRS net" + fi ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ if test $enableval = "no"; + then + AC_MSG_RESULT(disable NEL 3D.) + else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" + fi ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + [ if test $enableval = "no"; + then + AC_MSG_RESULT(disable NEL PACS.) + else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" + fi ], + [ NEL_SUBDIRS="$NEL_SUBDIRS pacs" ] ) + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + [ if test $enableval = "yes"; + then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" + fi ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + [ if test $enableval = "yes"; + then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" + fi ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.44&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.44&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..10d4e35e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.44&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,485 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.44 2001/08/01 10:38:58 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + [ if test $enableval = "no"; + then + AC_MSG_RESULT(disable NEL Network.) + else + NEL_SUBDIRS="$NEL_SUBDIRS net" + fi ], + [ NEL_SUBDIRS="$NEL_SUBDIRS net" ] ) + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + [ if test $enableval = "no"; + then + AC_MSG_RESULT(disable NEL 3D.) + else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" + fi ], + [ NEL_SUBDIRS="$NEL_SUBDIRS 3d" ] ) + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + [ if test $enableval = "no"; + then + AC_MSG_RESULT(disable NEL PACS.) + else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" + fi ], + [ NEL_SUBDIRS="$NEL_SUBDIRS pacs" ] ) + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + [ if test $enableval = "yes"; + then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" + fi ] ) + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + [ if test $enableval = "yes"; + then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" + fi ] ) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.45&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.45&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..300845f5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.45&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,492 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.45 2001/08/01 17:15:45 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.45&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.45&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..300845f5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.45&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,492 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.45 2001/08/01 17:15:45 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header/library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib.)] +) + +if test X"$STLLIB_DIR" != X; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.46&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.46&sortby=date new file mode 100644 index 00000000..6ba1d31e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.46&sortby=date @@ -0,0 +1,530 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.46 2001/08/02 15:58:55 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/stlport] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local//stlport/include] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort header files directory. + e.g. /usr/local/stlport/lib] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_INCLUDE="$with_stlport/include" + STLPORT_LIB="$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_INCLUDE="$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="$with_stlport_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + +AC_MSG_RESULT([*** $STLPORT_INCLUDE *** $STLPORT_LIB ***]) + + if test X"$STLPORT_INCLUDE" != X + then + CXXFLAGS="-I$STLPORT_INCLUDE $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="-L$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" + +fi + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.48&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.48&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..64133454 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.48&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,632 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.48 2001/08/08 09:37:04 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport ] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport ] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib ] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local] +) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include] +) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib] +) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="$with_openal/include" + OPENAL_LIB="$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +if test X"$OPENAL_CFLAGS" != X +then + CXXFLAGS="-I$OPENAL_CFLAGS $CXXFLAGS" +fi + +if test X"$OPENAL_LIB" != X +then + LIBS="-L$OPENAL_LIB $LIBS -lstlport_gcc" +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.49&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.49&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..4a24e7e0 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.49&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,616 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.49 2001/08/08 17:08:23 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.5&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.5&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.5&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.5&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.5&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.5&content-type=text/plain&sortby=author/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.50&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.50&sortby=date new file mode 100644 index 00000000..44ed24ce --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.50&sortby=date @@ -0,0 +1,617 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.50 2001/08/09 15:40:37 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.51&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.51&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..0b6f2b84 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.51&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,624 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.51 2001/10/08 14:52:19 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.52&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.52&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..3d10af17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.52&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,627 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.52 2001/10/09 13:43:06 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +if test "$enable_3d" = "yes" +then + AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.53&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.53&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..3e787a8d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.53&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,624 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.53 2001/10/09 13:48:11 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.53&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.53&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..3e787a8d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.53&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,624 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.53 2001/10/09 13:48:11 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.54&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.54&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..5df459b6 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.54&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,624 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.54 2001/10/31 09:54:43 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.54&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.54&sortby=date new file mode 100644 index 00000000..5df459b6 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.54&sortby=date @@ -0,0 +1,624 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.54 2001/10/31 09:54:43 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.55&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.55&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..0379d508 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.55&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,630 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.55 2001/11/07 16:25:13 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.55&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.55&sortby=date new file mode 100644 index 00000000..0379d508 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.55&sortby=date @@ -0,0 +1,630 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.55 2001/11/07 16:25:13 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no" -a "$enable_ai" = "yes" +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +dnl Use C++ compiler as a default for the compilation test. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_stlport" != "no" +then + +# if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" +# then +# AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +#This tells configure where to find the STLPort files.]) +# fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="yes" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +dnl Ask user for path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +if test $with_openal +then + AC_MSG_RESULT(using OpenAL files located in $with_openal) + + OPENAL_CFLAGS="-I$with_openal/include" + OPENAL_LIB="-L$with_openal/lib" +fi + +if test "$with_openal_include" +then + AC_MSG_RESULT(using OpenAL header files located in $with_openal_include) + OPENAL_CFLAGS="-I$with_openal_include" +fi + +if test "$with_openal_lib" +then + AC_MSG_RESULT(using OpenAL library files located in $with_openal_lib) + OPENAL_LIB="-L$with_openal_lib" +fi + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[ AC_MSG_RESULT(ok)], + AC_MSG_RESULT(no) + if test "$enable_ai" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" + fi +fi + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_3d" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile NeL (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile NeL (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl OpenGL +dnl ========== + +dnl Checking the OpenGL installation +AC_MSG_CHECKING(for OpenGL) +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], +[ AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no) + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR([OpenGL 1.2 is needed to compile NeL (www.mesa3d.org).]) + fi +) + +dnl Checking the GLEXT version +AC_MSG_CHECKING(for version) +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], +[ AC_MSG_RESULT(ok) ], + if test "$enable_3d" = "yes" + then + AC_MSG_RESULT(no) + AC_MSG_ERROR([A newer version of is needed to compile NeL (download it from http://oss.sgi.com/projects/ogl-sample/ABI/).]) + fi +) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ +AC_MSG_CHECKING("for XF86VidMode extension") +AC_ARG_WITH( xf86vidmode, + [ --with-xf86vidmode= + path to the XF86VidMode lib. + e.g. /usr/X11R6/lib], + [ VMLIB_DIR=$with_xf86vidmode + AC_MSG_RESULT(using VidMode library located in $with_xf86vidmode.)], + AC_MSG_RESULT(Compiling without Xf86VidMode and hence fullscreen support to compile with XF86VidMode support, use --with-xf86vidmode=) +) + +if test X"$VMLIB_DIR" != X; +then + LIBS="-L$VMLIB_DIR -lXxf86vm $LIBS"; + CXXFLAGS="$CXXFLAGS -DXF86VIDMODE"; +fi + + +dnl ========== +dnl OpenAL +dnl ========== + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], +[ AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no) + if test "$enable_sound" = "yes" + then + AC_MSG_ERROR([OpenAL is needed to compile NeL (www.openal.org).]) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..2dd9f346 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,306 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.56 2002/01/07 16:09:52 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +AM_PATH_STLPORT + + +dnl ========== +dnl OpenAL +dnl ========== + +AM_PATH_OPENAL( $enable_3d ) + + +dnl ========== +dnl Python +dnl ========== + +AM_PATH_PYTHON( $enable_ai ) + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl FreeType 2 +dnl ========== + +AM_PATH_FREETYPE( $enable_3d ) + + +dnl ========== +dnl OpenGL +dnl ========== + +AM_PATH_OPENGL( $enable_3d ) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..2dd9f346 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,306 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.56 2002/01/07 16:09:52 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +AM_PATH_STLPORT + + +dnl ========== +dnl OpenAL +dnl ========== + +AM_PATH_OPENAL( $enable_3d ) + + +dnl ========== +dnl Python +dnl ========== + +AM_PATH_PYTHON( $enable_ai ) + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl FreeType 2 +dnl ========== + +AM_PATH_FREETYPE( $enable_3d ) + + +dnl ========== +dnl OpenGL +dnl ========== + +AM_PATH_OPENGL( $enable_3d ) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&sortby=log new file mode 100644 index 00000000..2dd9f346 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.56&sortby=log @@ -0,0 +1,306 @@ +dnl +dnl Configuration script for NeL +dnl +dnl $Id: configure.in,v 1.56 2002/01/07 16:09:52 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========== +dnl STLPort +dnl ========== + +AM_PATH_STLPORT + + +dnl ========== +dnl OpenAL +dnl ========== + +AM_PATH_OPENAL( $enable_3d ) + + +dnl ========== +dnl Python +dnl ========== + +AM_PATH_PYTHON( $enable_ai ) + + +dnl ========== +dnl LibXML +dnl ========== + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl FreeType 2 +dnl ========== + +AM_PATH_FREETYPE( $enable_3d ) + + +dnl ========== +dnl OpenGL +dnl ========== + +AM_PATH_OPENGL( $enable_3d ) + + +dnl ============================================ +dnl Check for XF86VidMode extension (-lXxf86vm) +dnl ============================================ + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.57&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.57&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..a1684dfe --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.57&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,317 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.57 2002/01/10 10:47:23 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL( $enable_3d ) + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON( 1.5, $enable_ai ) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE( $enable_3d ) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL( $enable_3d ) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.57&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.57&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..a1684dfe --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.57&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,317 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.57 2002/01/10 10:47:23 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL( $enable_3d ) + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON( 1.5, $enable_ai ) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2( 2.0.0, , AC_MSG_ERROR(libxml2 must be installed.) ) + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE( $enable_3d ) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL( $enable_3d ) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.58&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.58&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..c8e5f449 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.58&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,317 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.58 2002/01/10 14:33:20 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_3d) + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.58&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.58&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..c8e5f449 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.58&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,317 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.58 2002/01/10 14:33:20 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_3d) + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.59&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.59&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..a45fad4a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.59&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,317 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.59 2002/01/28 15:22:19 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +dnl What an ugly hack to try to get something cleanner ... i hope ... +AC_OUTPUT_COMMANDS( + [cd include/nel && ln -sfv ../nelconfig.h .] +) + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.60&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.60&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..eece358f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.60&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,328 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.60 2002/03/19 17:42:48 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.62&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.62&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..12cb04fd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.62&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,347 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.62 2002/03/26 13:52:57 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.62&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.62&sortby=date new file mode 100644 index 00000000..12cb04fd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.62&sortby=date @@ -0,0 +1,347 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.62 2002/03/26 13:52:57 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.63&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.63&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..0700979f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.63&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,350 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.63 2002/03/26 14:37:46 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.64&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.64&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..81eeff68 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.64&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,351 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.64 2002/04/15 09:44:41 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.65&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.65&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..d8a54d65 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.65&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,356 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.65 2002/04/15 12:04:16 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" +then + CXX="ccache $CXX" +fi + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.65&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.65&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..d8a54d65 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.65&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,356 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.65 2002/04/15 12:04:16 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" +then + CXX="ccache $CXX" +fi + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.66&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.66&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..c10a462c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.66&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,362 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.66 2002/04/15 12:54:16 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" ; then +AC_DEFINE(HAVE_X86) +fi + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" +then + CXX="ccache $CXX" +fi + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..807cdb21 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1,359 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.67 2002/04/16 12:01:39 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" ; then +AC_DEFINE(HAVE_X86) +fi + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..807cdb21 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,359 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.67 2002/04/16 12:01:39 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" ; then +AC_DEFINE(HAVE_X86) +fi + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&sortby=date new file mode 100644 index 00000000..807cdb21 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.67&sortby=date @@ -0,0 +1,359 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.67 2002/04/16 12:01:39 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" ; then +AC_DEFINE(HAVE_X86) +fi + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.68&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.68&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..270d2cff --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.68&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,360 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.68 2002/04/16 16:00:31 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" ; then +AC_DEFINE(HAVE_X86) +fi +AC_C_BIGENDIAN + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.68&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.68&sortby=log new file mode 100644 index 00000000..270d2cff --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.68&sortby=log @@ -0,0 +1,360 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.68 2002/04/16 16:00:31 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" ; then +AC_DEFINE(HAVE_X86) +fi +AC_C_BIGENDIAN + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +CFLAGS="$CFLAGS -I\${top_srcdir}/include" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.69&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.69&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..312b71be --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.69&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,361 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.69 2002/04/17 07:23:45 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" ; then +AC_DEFINE(HAVE_X86) +fi +AC_C_BIGENDIAN + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +dnl Put the nelconfig.h define +CFLAGS="$CFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.69&sortby=log b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.69&sortby=log new file mode 100644 index 00000000..312b71be --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.69&sortby=log @@ -0,0 +1,361 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.69 2002/04/17 07:23:45 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" ; then +AC_DEFINE(HAVE_X86) +fi +AC_C_BIGENDIAN + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +dnl Put the nelconfig.h define +CFLAGS="$CFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.7&content-type=text/plain&hideattic=0&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.7&content-type=text/plain&hideattic=0&sortby=rev/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.7&content-type=text/plain&hideattic=0&sortby=rev/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.7&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.7&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.7&content-type=text/plain&sortby=author/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.70&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.70&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..d6685fb9 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.70&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,364 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.70 2002/04/25 17:53:36 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + +dnl Get host type info +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" +then + AC_DEFINE(HAVE_X86) +fi + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Test endianness +AC_C_BIGENDIAN + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C compiler as a default for the libxml tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +dnl Put the nelconfig.h define +CFLAGS="$CFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.71&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.71&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..0a9933b4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.71&content-type=text/plain&sortby=date&only_with_tag=HEAD/index.html @@ -0,0 +1,377 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.71 2002/05/13 15:44:57 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + +dnl Get host type info +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" +then + AC_DEFINE(HAVE_X86) +fi + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Test endianness +AC_C_BIGENDIAN + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C compiler as a default for the libxml tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +dnl Put the nelconfig.h define +CFLAGS="$CFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + tools/Makefile \ + tools/3d/Makefile \ + tools/3d/build_coarse_mesh/Makefile \ + tools/3d/build_far_bank/Makefile \ + tools/3d/build_smallbank/Makefile \ + tools/3d/ig_lighter/Makefile \ + tools/3d/ig_lighter_lib/Makefile \ + tools/3d/panoply_maker/Makefile \ + tools/3d/zone_dependencies/Makefile \ + tools/3d/zone_ig_lighter/Makefile \ + tools/3d/zone_lib/Makefile \ + tools/3d/zone_lighter/Makefile \ + tools/3d/zone_welder/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.71&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.71&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..0a9933b4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.71&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,377 @@ +dnl ==================================================================== +dnl Configuration script for NeL +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.71 2002/05/13 15:44:57 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(include/nel/nel.h) + + +dnl MAJOR_VERSION correspond to the CURRENT interface number. +dnl MINOR_VERSION correspond to the interface REVISION (implementation) +dnl number. +dnl PICO_VERSION correspond to the interface AGE, which is the number +dnl of previous additional interfaces supported by this library. +dnl It must be less than or equal to CURRENT. + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION + +AM_INIT_AUTOMAKE(nel,$VERSION) + +LIBTOOL_VERSION=$MAJOR_VERSION:$MINOR_VERSION:$PICO_VERSION + +AC_SUBST(VERSION) +AC_SUBST(LIBTOOL_VERSION) + +AM_CONFIG_HEADER(include/nelconfig.h) + +dnl Get host type info +AC_CANONICAL_HOST +if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" \ + -o "$host_cpu" = "i586" -o "$host_cpu" = "i686" \ + -o "$host_cpu" = "i786" +then + AC_DEFINE(HAVE_X86) +fi + +dnl The following hack should ensure that configure doesnt add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS -ftemplate-depth-24" +CXXFLAGS="$CXXFLAGS -ftemplate-depth-24" + + +dnl ==================================================================== +dnl Checks NeL modules (net, 3d, ai) to install / Disable +dnl ==================================================================== + +dnl the misc is mandatory, it is use by the other modules. +NEL_SUBDIRS="misc" + +dnl Network library +AC_ARG_ENABLE( net, + [ --disable-net disable compilation and install of NeL Network.], + , enable_net=yes ) + +if test $enable_net = "no"; +then + AC_MSG_RESULT(disable NEL Network.) +else + NEL_SUBDIRS="$NEL_SUBDIRS net" +fi + +dnl 3D library +AC_ARG_ENABLE( 3d, + [ --disable-3d disable compilation and install of NeL 3D.], + , enable_3d=yes ) + +if test $enable_3d = "no"; +then + AC_MSG_RESULT(disable NEL 3D.) +else + NEL_SUBDIRS="$NEL_SUBDIRS 3d" +fi + +dnl PACS library +AC_ARG_ENABLE( pacs, + [ --disable-pacs disable compilation and install of NeL PACS.], + , enable_pacs=yes ) + +if test $enable_pacs = "no"; +then + AC_MSG_RESULT(disable NEL PACS.) +else + NEL_SUBDIRS="$NEL_SUBDIRS pacs" +fi + +dnl Sound library +AC_ARG_ENABLE( sound, + [ --enable-sound enable compilation and install of NeL Sound.], + , enable_sound=no ) + +if test $enable_sound = "yes"; +then + AC_MSG_RESULT(enable NEL Sound.) + NEL_SUBDIRS="$NEL_SUBDIRS sound" +fi + +dnl AI library +AC_ARG_ENABLE( ai, + [ --enable-ai enable compilation and install of NeL AI.], + , enable_ai=no ) + +if test $enable_ai = "yes"; +then + AC_MSG_RESULT(enable NEL AI.) + NEL_SUBDIRS="$NEL_SUBDIRS ai" +fi + +dnl Georges library +AC_ARG_ENABLE( georges, + [ --enable-georges enable compilation and install of NeL Georges.], + , enable_georges=no ) + +if test $enable_georges = "yes"; +then + AC_MSG_RESULT(enable NEL Georges.) + NEL_SUBDIRS="$NEL_SUBDIRS georges" +fi + +AC_SUBST(enable_net) +AC_SUBST(enable_3d) +AC_SUBST(enable_pacs) +AC_SUBST(enable_sound) +AC_SUBST(enable_ai) +AC_SUBST(enable_georges) + +AC_SUBST(NEL_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_YACC +AM_PROG_LEX + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Disable the static linking by default +dnl AC_DISABLE_STATIC + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + +AC_ARG_WITH([logging], + [ --without-logging be silent on stdout and in no log.log], + [ +if test "$with_logging" = "no" +then + AC_DEFINE(NEL_DEFAULT_DISPLAYER, 0) + AC_DEFINE(NEL_LOG_IN_FILE, 0) +else + AC_MSG_ERROR([--with-logging is the default: do not use this option]) +fi +]) + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Test endianness +AC_C_BIGENDIAN + +dnl Supress GCC "multi-character character constant" warnings. +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -Wno-multichar" +fi + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CFLAGS="$CFLAGS -D_REENTRANT" + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" +then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_3d" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl Python + +AM_PATH_PYTHON(1.5,$enable_ai) + + +dnl ==================================================================== +dnl LibXML + +dnl Use C compiler as a default for the libxml tests. +AC_LANG_C + +AM_PATH_XML2(2.0.0, , AC_MSG_ERROR(libxml2 must be installed.)) + +CFLAGS="$CFLAGS $XML_CFLAGS" +CXXFLAGS="$CXXFLAGS $XML_CFLAGS" + +LIBS="$LIBS $XML_LIBS" + +dnl Use C++ compiler as a default for the compilation tests. +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_3d) + + +dnl ==================================================================== +dnl OpenGL + +AM_PATH_OPENGL($enable_3d) + + +dnl ==================================================================== +dnl Check for XF86VidMode extension (-lXxf86vm) + +AM_PATH_XF86VIDMODE + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_sound) + + +dnl ==================================================================== +dnl Arrange for the include directory to be in the search path even when +dnl build is done outside the source tree +dnl Put the nelconfig.h define +CFLAGS="$CFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" +CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H" + + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + include/Makefile \ + include/nel/Makefile \ + include/nel/misc/Makefile \ + include/nel/net/Makefile \ + include/nel/3d/Makefile \ + include/nel/pacs/Makefile \ + include/nel/sound/Makefile \ + include/nel/ai/Makefile \ + include/nel/ai/agent/Makefile \ + include/nel/ai/c/Makefile \ + include/nel/ai/character/Makefile \ + include/nel/ai/e/Makefile \ + include/nel/ai/fuzzy/Makefile \ + include/nel/ai/logic/Makefile \ + include/nel/ai/nimat/Makefile \ + include/nel/ai/pyserver/Makefile \ + include/nel/ai/script/Makefile \ + include/nel/ai/tools/Makefile \ + include/nel/georges/Makefile \ + src/Makefile \ + src/misc/Makefile \ + src/misc/config_file/Makefile \ + src/net/Makefile \ + src/3d/Makefile \ + src/3d/driver/Makefile \ + src/3d/driver/opengl/Makefile \ + src/pacs/Makefile \ + src/sound/Makefile \ + src/sound/driver/Makefile \ + src/sound/driver/openal/Makefile \ + src/ai/Makefile \ + src/ai/agent/Makefile \ + src/ai/c/Makefile \ + src/ai/character/Makefile \ + src/ai/fuzzy/Makefile \ + src/ai/logic/Makefile \ + src/ai/nimat/Makefile \ + src/ai/pyserver/Makefile \ + src/ai/script/Makefile \ + src/ai/tools/Makefile \ + src/georges/Makefile \ + tools/Makefile \ + tools/3d/Makefile \ + tools/3d/build_coarse_mesh/Makefile \ + tools/3d/build_far_bank/Makefile \ + tools/3d/build_smallbank/Makefile \ + tools/3d/ig_lighter/Makefile \ + tools/3d/ig_lighter_lib/Makefile \ + tools/3d/panoply_maker/Makefile \ + tools/3d/zone_dependencies/Makefile \ + tools/3d/zone_ig_lighter/Makefile \ + tools/3d/zone_lib/Makefile \ + tools/3d/zone_lighter/Makefile \ + tools/3d/zone_welder/Makefile \ + nel-config \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.8&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.8&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..ea313c40 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/configure.in?rev=1.8&content-type=text/plain&sortby=log/index.html @@ -0,0 +1 @@ +cvs [checkout aborted]: invalid change text in /home/cvsroot/code/nel/configure.in,v diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/architect.png?rev=1.1&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/architect.png?rev=1.1&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..39c84ccd Binary files /dev/null and b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/architect.png?rev=1.1&content-type=text/plain&sortby=date/index.html differ diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.2&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.2&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..f1493d5f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.2&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,73 @@ +/** + \page log_howto How to log information ? + \author Olivier Cado + + This document explains how to log some information (into the screen, into a file or to a logging server), e.g. in order to debug your code. + You need to include the following header files : "nel/misc/debug.h" "nel/misc/log.h". + + \subsection init_log Initialization + + In the initialization of your service (see NLNET::IService), attach some displayers to the global NLMISC::CLog objects + \e ErrorLog, \e WarningLog, \e InfoLog, \e DebugLog and \e AssertLog. + NLMISC::CStdDisplayer is for the screen (and VC++ debug window). It is attached by default to all of the five logger objects mentionned above. + NLMISC::CFileDisplayer is for a file. + NLMISC::CMsgBoxDisplayer is for a message box. + NLNET::CNetDisplayer is for a logging server (see CLogService in the server documentation) + + If your program is not a service (i.e. it is not inherited from NLNET::IService), + don't forget to call \b NLMISC::InitDebug() at the beginning of your program, otherwise + the logging functions won't work. + + Example : + \code + + NLMISC::InitDebug(); // if your program does not inherit from NLNET::IService + NLNET::CNetDisplayer *nd = new CNetDisplayer(); // the address of the Logging Server is automatically retrieved using the Naming Service + if ( nd->connected() ) // this line is optional: here we don't want the displayer to attempt other connections if the first one failed + { + NLMISC::DebugLog.addDisplayer( nd ); + } + \endcode + + \subsection use_log Logging information + In your code, use the macros : \e nlerror, \e nlwarning, \e nlinfo, \e nldebug with a variable number of arguments. + You have to include the header "nel/misc/debug.h". + + Example : + \code + nldebug( "Toto is %d years old", age ); + if ( age < 0 ) + { + nlerror( "Invalid age for toto : %d", age ); + return -1; + } + \endcode + + - How to log a string without repeating the header ? + + The macros nldebug() and nlerror() call some methods of NLMISC::CLog, including displayNL(). + It prints a string with an information header. + If you don't want to print the header, use the others methods of NLMISC::CLog. + + Example : + \code + NLMISC::DebugLog.displayNL ( "Dump of Values :" ); + for ( int j=0; j!=height; ++j ) + { + for ( int i=0; i!=width; ++i ) + { + NLMISC::DebugLog.displayRaw( "%d ", Values[j][i] ); + } + NLMISC::DebugLog.displayRawNL( ": line %d", j ); + } + \endcode + + \subsection Analysing network transfers + + NLNET::NetLog (declared in "nel/net/nel_log.h") is a special logger that allows to send output and input logs to a logging server. + These logs are produced by the network subsystem and have a special syntax so that an analyser can process them and display the transfers + graphically in real-time. + + By default, all services (see NLNET::IService) send this kind of logs if they find a logging server. + +*/ diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.5&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.5&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..74139834 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.5&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,88 @@ +/** + \page log_howto How to log information (for debugging purpose) ? + \author Olivier Cado + \date Updated May 4 2000 + +This document explains how to log some information (into the screen, into a file or to a logging server), e.g. in order to debug your code. + +\section basic_debug Basic usage of the debugging system +The debugging sytem allows to log information at various levels. Include the header file "nel/misc/debug.h". + +The main functionalities are offered by the macros nldebug, nlinfo, nlwarning and also nlerror and nlassert, and by their variant forms (see debug.h). They allow to display strings, with open arguments, using the "printf" syntax. In the default behaviour, the text passed to nldebug is displayed into stdout in NL_DEBUG mode, but not in NL_RELEASE. The logged texts are also written into a file called "log.log" in the working directory. These macros print the strings with an information header. + + Example : + \code + sint32 age = -2; + nldebug( "Toto is %d years old", age ); + if ( age < 0 ) + { + nlerror( "Invalid age for toto : %d", age ); + + // the program will not come here because nlerror throws an exception to exit + } + + STDOUT (logger thread_id file line: debug_string): + DBG 1234 myfile.cpp 10: Toto is -2 years old + ERR 1234 myfile.cpp 13: Invalid age for toto : -2 + Abort + + FILE OUTPUT (date time logger debug_string): + 01/04/11 18:24:50 DBG: Toto is -2 years old + 01/04/11 18:24:50 ERR: Invalid age for toto : -2 + \endcode + +Because NeL allows to create multithreaded programs, these macros use mutual exclusions (mutex) to ensure no data is corrupted and the displayed text not interlaced. + +\section adv_log Advanced usage of the logging system + +You may want to customize the logging system directly, for your own needs. Include "nel/misc/log.h". + +\subsection init_log Initialization +If your program is not a "service" in the NeL terms (i.e. if it is not built on NLNET::IService), +first call createDebug() to create the basic global loggers \e ErrorLog, \e WarningLog, \e InfoLog, \e DebugLog and \e AssertLog (the ones that are used by the nlerror, nlwarning, nlinfo, nldebug and nlassert macros). + +Then, you can attach some displayers to the global loggers (NLMISC::CLog objects). +- NLMISC::CStdDisplayer is for stdout (the console, the VC++ output window...). It is attached by default to all of the five logger objects mentionned above. +- NLMISC::CFileDisplayer is for a file. +- NLMISC::CMsgBoxDisplayer is for a message box. +- NLNET::CNetDisplayer is for a logging server (see CLogService in the nelns documentation). +- You can can create your own displayer, in order to print the logged text onto a new target (for example, see the class CChatDisplayer in Snowballs 0.2) or to customize the filter on the header. + +Example (we assume CNetDisplayer allows to log via the network): + \code + + createDebug(); // automatically done in a "service" + NLNET::CNetDisplayer *nd = new CNetDisplayer(); // the address of the Logging Server is automatically retrieved using the Naming Service + if ( nd->connected() ) // this line is optional: here we don't want the displayer to attempt other connections if the first one failed + { + NLMISC::DebugLog.addDisplayer( nd ); + } + \endcode + + \subsection use_log Logging information + + How to log a string without repeating the header ? Use the methods of NLMISC::CLog. + + Example : + \code + NLMISC::DebugLog.displayNL ( "Dump of Values :" ); + for ( int j=0; j!=height; ++j ) + { + for ( int i=0; i!=width; ++i ) + { + NLMISC::DebugLog.displayRaw( "%d ", Values[j][i] ); + } + NLMISC::DebugLog.displayRawNL( ": line %d", j ); + } + \endcode + +*/ + + \subsection network_transfers Analysing network transfers + + NLNET::NetLog (declared in "nel/net/nel_log.h") is a special logger that allows to send output and input logs to a logging server. + These logs are produced by the network subsystem and have a special syntax so that an analyser can process them and display the transfers + graphically in real-time. + + By default, all services (see NLNET::IService) send this kind of logs if they find a logging server. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.6&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.6&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..44dac067 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/logging.dxt?rev=1.6&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,88 @@ +/** + \page log_howto How to log information (for debugging purpose) ? + \author Olivier Cado + \date Updated May 4 2001 + +This document explains how to log some information (into the screen, into a file or to a logging server), e.g. in order to debug your code. + +\section basic_debug Basic usage of the debugging system +The debugging sytem allows to log information at various levels. Include the header file "nel/misc/debug.h". + +The main functionalities are offered by the macros nldebug, nlinfo, nlwarning and also nlerror and nlassert, and by their variant forms (see debug.h). They allow to display strings, with open arguments, using the "printf" syntax. In the default behaviour, the text passed to nldebug is displayed into stdout in NL_DEBUG mode, but not in NL_RELEASE. The logged texts are also written into a file called "log.log" in the working directory. These macros print the strings with an information header. + + Example : + \code + sint32 age = -2; + nldebug( "Toto is %d years old", age ); + if ( age < 0 ) + { + nlerror( "Invalid age for toto : %d", age ); + + // the program will not come here because nlerror throws an exception to exit + } + + STDOUT (logger thread_id file line: debug_string): + DBG 1234 myfile.cpp 10: Toto is -2 years old + ERR 1234 myfile.cpp 13: Invalid age for toto : -2 + Abort + + FILE OUTPUT (date time logger debug_string): + 01/04/11 18:24:50 DBG: Toto is -2 years old + 01/04/11 18:24:50 ERR: Invalid age for toto : -2 + \endcode + +Because NeL allows to create multithreaded programs, these macros use mutual exclusions (mutex) to ensure no data is corrupted and the displayed text not interlaced. + +\section adv_log Advanced usage of the logging system + +You may want to customize the logging system directly, for your own needs. Include "nel/misc/log.h". + +\subsection init_log Initialization +If your program is not a "service" in the NeL terms (i.e. if it is not built on NLNET::IService), +first call createDebug() to create the basic global loggers \e ErrorLog, \e WarningLog, \e InfoLog, \e DebugLog and \e AssertLog (the ones that are used by the nlerror, nlwarning, nlinfo, nldebug and nlassert macros). + +Then, you can attach some displayers to the global loggers (NLMISC::CLog objects). +- NLMISC::CStdDisplayer is for stdout (the console, the VC++ output window...). It is attached by default to all of the five logger objects mentionned above. +- NLMISC::CFileDisplayer is for a file. +- NLMISC::CMsgBoxDisplayer is for a message box. +- NLNET::CNetDisplayer is for a logging server (see CLogService in the nelns documentation). +- You can can create your own displayer, in order to print the logged text onto a new target (for example, see the class CChatDisplayer in Snowballs 0.2) or to customize the filter on the header. + +Example (we assume CNetDisplayer allows to log via the network): + \code + + createDebug(); // automatically done in a "service" + NLNET::CNetDisplayer *nd = new CNetDisplayer(); // the address of the Logging Server is automatically retrieved using the Naming Service + if ( nd->connected() ) // this line is optional: here we don't want the displayer to attempt other connections if the first one failed + { + NLMISC::DebugLog.addDisplayer( nd ); + } + \endcode + + \subsection use_log Logging information + + How to log a string without repeating the header ? Use the methods of NLMISC::CLog. + + Example : + \code + NLMISC::DebugLog.displayNL ( "Dump of Values :" ); + for ( int j=0; j!=height; ++j ) + { + for ( int i=0; i!=width; ++i ) + { + NLMISC::DebugLog.displayRaw( "%d ", Values[j][i] ); + } + NLMISC::DebugLog.displayRawNL( ": line %d", j ); + } + \endcode + +*/ + + \subsection network_transfers Analysing network transfers + + NLNET::NetLog (declared in "nel/net/nel_log.h") is a special logger that allows to send output and input logs to a logging server. + These logs are produced by the network subsystem and have a special syntax so that an analyser can process them and display the transfers + graphically in real-time. + + By default, all services (see NLNET::IService) send this kind of logs if they find a logging server. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.2&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.2&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..8ac1952f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.2&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,3 @@ +R: +cd \code\nel\doc +doxygen -s nel.dox diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.3&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.3&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..f104fb36 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.3&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,3 @@ +R: +cd \code\nel\doc +doxygen nel.dox diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.6&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.6&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..d698d129 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/make_nel_dox.bat?rev=1.6&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,7 @@ +@echo off +R: +cd \code\nel\doc +del html\*.* /Q +s:\bin\doxygen nel.dox +S:\bin\hhc html\index.hhp +copy html\index.chm s:\doc\nel.chm diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dox?rev=1.6&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dox?rev=1.6&sortby=date new file mode 100644 index 00000000..15bbff6e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dox?rev=1.6&sortby=date @@ -0,0 +1,186 @@ +# Doxyfile 1.2.13-20020210 + +#--------------------------------------------------------------------------- +# General configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = NeL +PROJECT_NUMBER = +OUTPUT_DIRECTORY = +OUTPUT_LANGUAGE = English +EXTRACT_ALL = YES +EXTRACT_PRIVATE = YES +EXTRACT_STATIC = YES +EXTRACT_LOCAL_CLASSES = YES +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +INTERNAL_DOCS = NO +STRIP_CODE_COMMENTS = YES +CASE_SENSE_NAMES = YES +SHORT_NAMES = NO +HIDE_SCOPE_NAMES = NO +VERBATIM_HEADERS = YES +SHOW_INCLUDE_FILES = YES +JAVADOC_AUTOBRIEF = YES +INHERIT_DOCS = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +ALIASES = +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +OPTIMIZE_OUTPUT_FOR_C = NO +SHOW_USED_FILES = YES +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = YES +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = r:/code/nel/src r:/code/nel/include +FILE_PATTERNS = *.h \ + *.cpp \ + *.dxt +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = *.lex.* \ + *.yacc.* +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = YES +INLINE_SOURCES = NO +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = YES +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = C \ + I \ + P +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = YES +GENERATE_CHI = NO +BINARY_TOC = NO +TOC_EXPAND = NO +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = NO +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::addtions related to external references +#--------------------------------------------------------------------------- +TAGFILES = R:/code/nelns/doc/server.tag=/code/server/doc/html +GENERATE_TAGFILE = nel.tag +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HAVE_DOT = YES +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +TEMPLATE_RELATIONS = YES +HIDE_UNDOC_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +GRAPHICAL_HIERARCHY = YES +DOT_IMAGE_FORMAT = gif +DOT_PATH = S:\bin\graphviz\bin +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::addtions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO +CGI_NAME = search.cgi +CGI_URL = +DOC_URL = +DOC_ABSPATH = +BIN_ABSPATH = /usr/local/bin/ +EXT_DOC_PATHS = diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dxt?rev=1.3&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dxt?rev=1.3&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..b6a3bd56 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dxt?rev=1.3&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,13 @@ +/** + * \mainpage NeL + * + * \section intro Introduction + * + * "NeL" stands for Nevrax Library. + * + * NeL is a library. It is designed and maintained by Nevrax. This library contains a framework, + * a 3D engine, an AI engine and a Network engine. + * + * You will find some overviews about features of NeL in the Related Pages. + * + */ diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dxt?rev=1.5&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dxt?rev=1.5&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..c2f931ee --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel.dxt?rev=1.5&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,17 @@ +/** + * \mainpage NeL + * + * \section intro Introduction + * + * \par + * "NeL" stands for Nevrax Library. + * + * \par + * NeL is a set of free software libraries which aim to form a complete toolbox + * of technologies for the development of massively multi-player online role + * playing games. + * + * \par + * You will find some overviews about features of NeL in the Related Pages. + * + */ diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel_samples.dxt?rev=1.3&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel_samples.dxt?rev=1.3&sortby=rev new file mode 100644 index 00000000..091ccf07 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/nel_samples.dxt?rev=1.3&sortby=rev @@ -0,0 +1,135 @@ +/** + +\page nelsamples NeL Samples + +$Id: nel_samples.dxt,v 1.3 2002/04/16 13:54:27 lecroart Exp $ + +\author Olivier Cado, Vianney Lecroart + +\date 06/15/2001 + + +\section samisc NeL Misc Samples + + +Theses samples illustrates the usage of the miscellaneous library. This is the based library used by all other Nevrax libraries. +It contains all usefull class and features that are not specific for one or another library. + +\subsection samisccommand command + +This samples describes how to create commands and execute them using ICommand class. It's a generic system to create and execute +command at run time (it is used in all services, snowballs client and so on). + +\subsection samiscconfigfile configfile + +This samples describes how to use NeL configuration file. (This system is used in all services, snowballs client and so on). + +\subsection samiscdebug debug + +This program shows you how to use basic debug stuffs that are used everywhere in NeL. + +\subsection samisclog log + +This sample uses the log and displayer system that is a generic way to generate output (on screen, file, network and so one). + +\section sanetwork NeL Net Samples + + +Theses samples illustrate the usage of network library + + +\subsection sanetlogin_system login_system + +This examples shows you how to use the login system provided by NeL to connects/check/identify clients. + +\subsection sanetservice service + +This is a very simple service example to describes the architecture to create services. + +\subsection sanetlayer3 net_layer3 + +This project demonstrates the usage of layer 3 (NLNET::CCallbackClient, NLNET::CCallbackServer) and the +service framework (NLNET::IService). It contains three programs: a client, a front-end service and a ping service. + +- The client connects to a front-end server at localhost:37000. +It sends pings and expects pongs (ping replies). +- The front-end server expects pings, and forward them to +the real ping server (known as "PS" in the naming service). +When the ping server sends a pong back, the front-end server forwards it to the client. +- The ping service (PS) expects pings and sends pongs back. + +To run the front-end service and the ping service, ensure +their config files, frontend_service.cfg and ping_service.cfg, +are located in the directory where they are run. These files +state the address of the naming service. + +\subsection sanetlayer4 net_layer4 + +This project demonstrates the usage of layer 4 (NLNET::CNetManager), the +service framework (NLNET::IService), and the connection and disconnection callbacks. +It contains three programs: a client, a front-end service and a ping service. +The functionalities are close to the ones of the previous sample. + +- The client connects to a front-end server at localhost:37000. +It sends pings and expects pongs (ping replies). +- This front-end server expects pings, and forward them to +the real ping server. When the ping server sends a pong back, +the front-end server forwards it to the client. +Even if the connection to the ping server is broken, our +front-end server will keep storing the ping messages and +will forward them when the connection is restored, thanks +to layer 4. +- The ping service (PS) expects pings and sends pongs back. + +To run the front-end service and the ping service, ensure +their config files, frontend_service.cfg and ping_service.cfg, +are located in the directory where they are run. These files +state the address of the naming service. + +\subsection sanetlayer5 net_layer5 + +This project demonstrates the usage of layer 5 (NLNET::CUnifiedNetwork), the +service framework (NLNET::IService), and the connection and disconnection callbacks. +It contains a set of services that communicate between them. +The functionalities are close to the ones of the previous sample but they add some +features like unified callback array, and so on. + +\subsection sanetudp udp + +This project demonstrates the usage of a client/server architecture for +benching an UDP connection. The server listen on TCP port and UDP port +for new incoming client. When a client is connected, it communicates on +the TCP port to set the bench and after it uses the UDP port to bench the +connection. The server log information on text file and send some info on +the client using the TCP connection. + +\subsection sanetclasstransport class_transport + +This project demonstrates the usage of the CTransportClass class. +This class allows services to send easily some class to another service. +It manages different class version (For example, the sender class can have +different variables than the receiver class) + +\section sa3d NeL 3D Samples + + +\e Document \e under \e construction + +\subsection sa3dfont font + +\e Document \e under \e construction + + +\section sapacs NeL PACS Samples + + +\e Document \e under \e construction + + +\section saai NeL AI Samples + + +\e Document \e under \e construction + + +*/ \ No newline at end of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/doc/project.dxt?rev=1.10&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/project.dxt?rev=1.10&sortby=date new file mode 100644 index 00000000..ab6a41ed --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/doc/project.dxt?rev=1.10&sortby=date @@ -0,0 +1,114 @@ +/** + +\page present NeL General Presentation +\author Vincent Archer + +\section introd What is NeL? + +NeL is a complete platform aimed at running massively multi-user +entertainment in a 3D environment over the Internet. + +\section oss Free Software + +NeL is also a Free Software project under the GNU General Public License, +which means all its code is available for everyone to download, examine, +use, modify, and distribute, subject to the usual restrictions attached to +any GPL software. See the attached text for more details if you are not +familiar with the GPL. + +\section dev Development + +NeL is a commercially funded project which is used to create a massively +multiplayer role-playing game in a 3D world. This means that there is a +permanent core of developpers who are paid to work on NeL, build upon it, +and use it. + +The fact that the source code is available doesn't simply mean you can have a +peek at the innards of the platform. Communication works both ways, so you can +also contribute to its development. +Any bug fix, added functionality, optimisation is not only possible, but +welcome, and improvements will be integrated into the reference platform +maintained by Nevrax. + +NeL is currently developped and tested under GNU/Linux and Windows environments. + +\section structure NeL Structure + +The platform is currenty built upon 4 different components. + +\subsection subnel The NeL Library + +The NeL library provides the core functionality required to build a +multi-user platform. It provides everything from 3D representation to AI to +network services. It is the true heart of the project, and something that +makes use of the best available technologies out there. There is a lot of +room for additions in NeL, from 3D stuff to database to networking. + +\subsection subclient The client + +The client uses the NeL library to provide a user interface to a +multiplayer 3D role-playing game environment. The client is a place of +high opportunity to modify, improve or port to different environments. + +\subsection subserver The server + +The server uses the NeL library to provide a multiplayer 3D role-playing +game environment. The term "server" is misleading, as it represents a server +in logical terms, i.e. something that provides a service. Actual game servers +will be referred to as "clusters", since they typically consist of several +networked systems, acting in close cooperation to run the world simulation +for the players. + +A cluster will scale from a single high-end system that runs the server and +client at the same time to a handful of basic GNU/Linux PCs for mid-size worlds +and to large high-end multiprocessor racked systems for professional level +service. + +The server architecture offers lots of opportunities for tweaking, ranging +from the administrative interfaces, the automated monitoring, backups, to +the physics of the universe simulation, improvements in distributed model and +other enhancement directly visible by the users of the system. + +\subsection subdata The game world + +These 3 pieces of software are completed by game data, which describes a +working world and game system. + +Please note that the game data is not software, and therefore not available under the +GPL. + +As the platform would be useless without a game world, a sample game world +data is provided, which is enough to run the gaming plaform, enjoy a minimum +game experience and let the amateur see exactly what he is doing while +working with NeL. + +The game data is produced using a set of tools, notably 3D Studio's Max for all +3D environment and models, painting programs for textures, spreadsheets for +datas, and so on. When possible, conversion tools for these software are +provided to allow people to produce painlessly their own environment and game +experience. + +\section contribs Community + +Beside the working core of NeL developpers, everyone may improve the NeL +platform. There is a supported community for the development of NeL hosted by +Nevrax in the nevrax.org domain. Various tools are available there to participate: + +- A CVS server \c (cvs.nevrax.org) which allows anonymous CVS checkout to stay in + sync with the reference platform. +- A WWW site \c (www.nevrax.org) which allows you to browse documentation, check the + CVS tree in a visual manner, and register for participation in the evolution of + NeL. +- A mailing list \c (nel@nevrax.org), dedicated to the communication between all + people interested in the NeL platform, regardless of their involvment or + amount of contributions. This is an unmoderated, open mailing list. You may + subscribe thru the WWW side, or by mailing directly to \c nel-request@nevrax.org + with \c "subscribe" in the subject. +- A WWW bug tracker that allows you to submit bugs, get notified of their state, + and their eventual resolution. All you need is a valid email address to + register in the bug database. +- A submission address \c (code@nevrax.org) for user-contributed code and patches, + where your code is evaluated, and usually integrated directly in the reference + platform. + + */ \ No newline at end of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?content-type=text/plain&rev=1.11&sortby=rev b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?content-type=text/plain&rev=1.11&sortby=rev new file mode 100644 index 00000000..4ad3dd08 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?content-type=text/plain&rev=1.11&sortby=rev @@ -0,0 +1,71 @@ +# +# $Id: Makefile.am,v 1.11 2001/03/30 09:12:58 valignat Exp $ +# + +install-exec-local: + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d/tmp + $(INSTALL_PROGRAM) -d $(includedir)/nel/misc + $(INSTALL_PROGRAM) -d $(includedir)/nel/net + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/agent + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/c + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/character + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/e + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/fuzzy + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/logic + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/nimat + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/pyserver + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/script + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/tools + $(INSTALL_PROGRAM) -d $(includedir)/nel/db + $(INSTALL_PROGRAM) -d $(includedir)/nel/python + $(INSTALL_PROGRAM) -d $(includedir)/nel/sys + $(INSTALL_DATA) -m a=r `echo nel/*.h` $(includedir)/nel + $(INSTALL_DATA) -m a=r `echo nel/3d/*.h` $(includedir)/nel/3d + $(INSTALL_DATA) -m a=r `echo nel/3d/tmp/*.h` $(includedir)/nel/3d/tmp + $(INSTALL_DATA) -m a=r `echo nel/misc/*.h` $(includedir)/nel/misc + $(INSTALL_DATA) -m a=r `echo nel/net/*.h` $(includedir)/nel/net + $(INSTALL_DATA) -m a=r `echo nel/ai/*.h` $(includedir)/nel/ai/ + $(INSTALL_DATA) -m a=r `echo nel/ai/agent/*.h` $(includedir)/nel/ai/agent + $(INSTALL_DATA) -m a=r `echo nel/ai/c/*.h` $(includedir)/nel/ai/c + $(INSTALL_DATA) -m a=r `echo nel/ai/character/*.h` $(includedir)/nel/ai/character + $(INSTALL_DATA) -m a=r `echo nel/ai/e/*.h` $(includedir)/nel/ai/e + $(INSTALL_DATA) -m a=r `echo nel/ai/fuzzy/*.h` $(includedir)/nel/ai/fuzzy + $(INSTALL_DATA) -m a=r `echo nel/ai/logic/*.h` $(includedir)/nel/ai/logic + $(INSTALL_DATA) -m a=r `echo nel/ai/nimat/*.h` $(includedir)/nel/ai/nimat + $(INSTALL_DATA) -m a=r `echo nel/ai/pyserver/*.h` $(includedir)/nel/ai/pyserver + $(INSTALL_DATA) -m a=r `echo nel/ai/script/*.h` $(includedir)/nel/ai/script + $(INSTALL_DATA) -m a=r `echo nel/ai/tools/*.h` $(includedir)/nel/ai/tools + + +uninstall-local: + rm -rf $(includedir)/nel + + +dist-hook: + cp -pr $(srcdir)/nel $(distdir) + rm -rf $(distdir)/CVS \ + $(distdir)/nel/CVS \ + $(distdir)/nel/misc/CVS \ + $(distdir)/nel/net/CVS \ + $(distdir)/nel/3d/CVS \ + $(distdir)/nel/3d/tmp/CVS \ + $(distdir)/nel/ai/CVS \ + $(distdir)/nel/ai/agent/CVS \ + $(distdir)/nel/ai/c/CVS \ + $(distdir)/nel/ai/character/CVS \ + $(distdir)/nel/ai/e/CVS \ + $(distdir)/nel/ai/fuzzy/CVS \ + $(distdir)/nel/ai/logic/CVS \ + $(distdir)/nel/ai/nimat/CVS \ + $(distdir)/nel/ai/pyserver/CVS \ + $(distdir)/nel/ai/script/CVS \ + $(distdir)/nel/ai/tools/CVS \ + $(distdir)/nel/db/CVS \ + $(distdir)/nel/python/CVS \ + $(distdir)/nel/sys/CVS + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.2&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.2&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..f7027f96 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.2&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,65 @@ +# +# $Id: Makefile.am,v 1.2 2001/01/08 16:20:41 valignat Exp $ +# + +install-exec-local: + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d + $(INSTALL_PROGRAM) -d $(includedir)/nel/misc + $(INSTALL_PROGRAM) -d $(includedir)/nel/net + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/agent + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/c + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/e + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/fuzzy + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/link + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/logic + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/nimat + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/pyserver + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/script + $(INSTALL_PROGRAM) -d $(includedir)/nel/db + $(INSTALL_PROGRAM) -d $(includedir)/nel/python + $(INSTALL_PROGRAM) -d $(includedir)/nel/sys + $(INSTALL_DATA) -m a=r `echo nel/*.h` $(includedir)/nel + $(INSTALL_DATA) -m a=r `echo nel/3d/*.h` $(includedir)/nel/3d + $(INSTALL_DATA) -m a=r `echo nel/misc/*.h` $(includedir)/nel/misc + $(INSTALL_DATA) -m a=r `echo nel/net/*.h` $(includedir)/nel/net + $(INSTALL_DATA) -m a=r `echo nel/ai/*.h` $(includedir)/nel/ai + $(INSTALL_DATA) -m a=r `echo nel/ai/agent/*.h` $(includedir)/nel/ai/agent + $(INSTALL_DATA) -m a=r `echo nel/ai/c/*.h` $(includedir)/nel/ai/c + $(INSTALL_DATA) -m a=r `echo nel/ai/e/*.h` $(includedir)/nel/ai/e + $(INSTALL_DATA) -m a=r `echo nel/ai/fuzzy/*.h` $(includedir)/nel/aifuzzy + $(INSTALL_DATA) -m a=r `echo nel/ai/link/*.h` $(includedir)/nel/ai/link + $(INSTALL_DATA) -m a=r `echo nel/ai/logic/*.h` $(includedir)/nel/ai/logic + $(INSTALL_DATA) -m a=r `echo nel/ai/nimat/*.h` $(includedir)/nel/ai/nimat + $(INSTALL_DATA) -m a=r `echo nel/ai/pyserver/*.h` $(includedir)/nel/ai/pyserver + $(INSTALL_DATA) -m a=r `echo nel/ai/script/*.h` $(includedir)/nel/ai/script + + +uninstall-local: + rm -rf $(includedir)/nel + + +dist-hook: + cp -pr $(srcdir)/nel $(distdir) + rm -rf $(distdir)/CVS \ + $(distdir)/nel/CVS \ + $(distdir)/nel/misc/CVS \ + $(distdir)/nel/net/CVS \ + $(distdir)/nel/3d/CVS \ + $(distdir)/nel/ai/CVS \ + $(distdir)/nel/ai/agent/CVS \ + $(distdir)/nel/ai/c/CVS \ + $(distdir)/nel/ai/e/CVS \ + $(distdir)/nel/ai/fuzzy/CVS \ + $(distdir)/nel/ai/link/CVS \ + $(distdir)/nel/ai/logic/CVS \ + $(distdir)/nel/ai/nimat/CVS \ + $(distdir)/nel/ai/pyserver/CVS \ + $(distdir)/nel/ai/script/CVS \ + $(distdir)/nel/db/CVS \ + $(distdir)/nel/python/CVS \ + $(distdir)/nel/sys/CVS + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.3&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.3&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..7dd7c3b0 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.3&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,64 @@ +# +# $Id: Makefile.am,v 1.3 2001/01/10 09:52:29 valignat Exp $ +# + +install-exec-local: + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d + $(INSTALL_PROGRAM) -d $(includedir)/nel/misc + $(INSTALL_PROGRAM) -d $(includedir)/nel/net + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/agent + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/c + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/e + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/fuzzy + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/link + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/logic + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/nimat + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/pyserver + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/script + $(INSTALL_PROGRAM) -d $(includedir)/nel/db + $(INSTALL_PROGRAM) -d $(includedir)/nel/python + $(INSTALL_PROGRAM) -d $(includedir)/nel/sys + $(INSTALL_DATA) -m a=r `echo nel/*.h` $(includedir)/nel + $(INSTALL_DATA) -m a=r `echo nel/3d/*.h` $(includedir)/nel/3d + $(INSTALL_DATA) -m a=r `echo nel/misc/*.h` $(includedir)/nel/misc + $(INSTALL_DATA) -m a=r `echo nel/net/*.h` $(includedir)/nel/net + $(INSTALL_DATA) -m a=r `echo nel/ai/agent/*.h` $(includedir)/nel/ai/agent + $(INSTALL_DATA) -m a=r `echo nel/ai/c/*.h` $(includedir)/nel/ai/c + $(INSTALL_DATA) -m a=r `echo nel/ai/e/*.h` $(includedir)/nel/ai/e + $(INSTALL_DATA) -m a=r `echo nel/ai/fuzzy/*.h` $(includedir)/nel/aifuzzy + $(INSTALL_DATA) -m a=r `echo nel/ai/link/*.h` $(includedir)/nel/ai/link + $(INSTALL_DATA) -m a=r `echo nel/ai/logic/*.h` $(includedir)/nel/ai/logic + $(INSTALL_DATA) -m a=r `echo nel/ai/nimat/*.h` $(includedir)/nel/ai/nimat + $(INSTALL_DATA) -m a=r `echo nel/ai/pyserver/*.h` $(includedir)/nel/ai/pyserver + $(INSTALL_DATA) -m a=r `echo nel/ai/script/*.h` $(includedir)/nel/ai/script + + +uninstall-local: + rm -rf $(includedir)/nel + + +dist-hook: + cp -pr $(srcdir)/nel $(distdir) + rm -rf $(distdir)/CVS \ + $(distdir)/nel/CVS \ + $(distdir)/nel/misc/CVS \ + $(distdir)/nel/net/CVS \ + $(distdir)/nel/3d/CVS \ + $(distdir)/nel/ai/CVS \ + $(distdir)/nel/ai/agent/CVS \ + $(distdir)/nel/ai/c/CVS \ + $(distdir)/nel/ai/e/CVS \ + $(distdir)/nel/ai/fuzzy/CVS \ + $(distdir)/nel/ai/link/CVS \ + $(distdir)/nel/ai/logic/CVS \ + $(distdir)/nel/ai/nimat/CVS \ + $(distdir)/nel/ai/pyserver/CVS \ + $(distdir)/nel/ai/script/CVS \ + $(distdir)/nel/db/CVS \ + $(distdir)/nel/python/CVS \ + $(distdir)/nel/sys/CVS + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.5&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.5&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..09f712c6 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.5&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,64 @@ +# +# $Id: Makefile.am,v 1.5 2001/02/06 09:27:05 valignat Exp $ +# + +install-exec-local: + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d + $(INSTALL_PROGRAM) -d $(includedir)/nel/misc + $(INSTALL_PROGRAM) -d $(includedir)/nel/net + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/agent + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/c + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/e + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/fuzzy + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/link + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/logic + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/nimat + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/pyserver + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/script + $(INSTALL_PROGRAM) -d $(includedir)/nel/db + $(INSTALL_PROGRAM) -d $(includedir)/nel/python + $(INSTALL_PROGRAM) -d $(includedir)/nel/sys + $(INSTALL_DATA) -m a=r `echo nel/*.h` $(includedir)/nel + $(INSTALL_DATA) -m a=r `echo nel/3d/*.h` $(includedir)/nel/3d + $(INSTALL_DATA) -m a=r `echo nel/misc/*.h` $(includedir)/nel/misc + $(INSTALL_DATA) -m a=r `echo nel/net/*.h` $(includedir)/nel/net + $(INSTALL_DATA) -m a=r `echo nel/ai/*.h` $(includedir)/nel/ai/ + $(INSTALL_DATA) -m a=r `echo nel/ai/agent/*.h` $(includedir)/nel/ai/agent + $(INSTALL_DATA) -m a=r `echo nel/ai/c/*.h` $(includedir)/nel/ai/c + $(INSTALL_DATA) -m a=r `echo nel/ai/e/*.h` $(includedir)/nel/ai/e + $(INSTALL_DATA) -m a=r `echo nel/ai/fuzzy/*.h` $(includedir)/nel/ai/fuzzy + $(INSTALL_DATA) -m a=r `echo nel/ai/logic/*.h` $(includedir)/nel/ai/logic + $(INSTALL_DATA) -m a=r `echo nel/ai/nimat/*.h` $(includedir)/nel/ai/nimat + $(INSTALL_DATA) -m a=r `echo nel/ai/pyserver/*.h` $(includedir)/nel/ai/pyserver + $(INSTALL_DATA) -m a=r `echo nel/ai/script/*.h` $(includedir)/nel/ai/script + + +uninstall-local: + rm -rf $(includedir)/nel + + +dist-hook: + cp -pr $(srcdir)/nel $(distdir) + rm -rf $(distdir)/CVS \ + $(distdir)/nel/CVS \ + $(distdir)/nel/misc/CVS \ + $(distdir)/nel/net/CVS \ + $(distdir)/nel/3d/CVS \ + $(distdir)/nel/ai/CVS \ + $(distdir)/nel/ai/agent/CVS \ + $(distdir)/nel/ai/c/CVS \ + $(distdir)/nel/ai/e/CVS \ + $(distdir)/nel/ai/fuzzy/CVS \ + $(distdir)/nel/ai/link/CVS \ + $(distdir)/nel/ai/logic/CVS \ + $(distdir)/nel/ai/nimat/CVS \ + $(distdir)/nel/ai/pyserver/CVS \ + $(distdir)/nel/ai/script/CVS \ + $(distdir)/nel/db/CVS \ + $(distdir)/nel/python/CVS \ + $(distdir)/nel/sys/CVS + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.7&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.7&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..9b0f839c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.7&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,67 @@ +# +# $Id: Makefile.am,v 1.7 2001/03/05 18:02:13 valignat Exp $ +# + +install-exec-local: + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d/tmp + $(INSTALL_PROGRAM) -d $(includedir)/nel/misc + $(INSTALL_PROGRAM) -d $(includedir)/nel/net + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/agent + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/c + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/e + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/fuzzy + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/link + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/logic + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/nimat + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/pyserver + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/script + $(INSTALL_PROGRAM) -d $(includedir)/nel/db + $(INSTALL_PROGRAM) -d $(includedir)/nel/python + $(INSTALL_PROGRAM) -d $(includedir)/nel/sys + $(INSTALL_DATA) -m a=r `echo nel/*.h` $(includedir)/nel + $(INSTALL_DATA) -m a=r `echo nel/3d/*.h` $(includedir)/nel/3d + $(INSTALL_DATA) -m a=r `echo nel/3d/tmp/*.h` $(includedir)/nel/3d + $(INSTALL_DATA) -m a=r `echo nel/misc/*.h` $(includedir)/nel/misc + $(INSTALL_DATA) -m a=r `echo nel/net/*.h` $(includedir)/nel/net + $(INSTALL_DATA) -m a=r `echo nel/ai/*.h` $(includedir)/nel/ai/ + $(INSTALL_DATA) -m a=r `echo nel/ai/agent/*.h` $(includedir)/nel/ai/agent + $(INSTALL_DATA) -m a=r `echo nel/ai/c/*.h` $(includedir)/nel/ai/c + $(INSTALL_DATA) -m a=r `echo nel/ai/e/*.h` $(includedir)/nel/ai/e + $(INSTALL_DATA) -m a=r `echo nel/ai/fuzzy/*.h` $(includedir)/nel/ai/fuzzy + $(INSTALL_DATA) -m a=r `echo nel/ai/logic/*.h` $(includedir)/nel/ai/logic + $(INSTALL_DATA) -m a=r `echo nel/ai/nimat/*.h` $(includedir)/nel/ai/nimat + $(INSTALL_DATA) -m a=r `echo nel/ai/pyserver/*.h` $(includedir)/nel/ai/pyserver + $(INSTALL_DATA) -m a=r `echo nel/ai/script/*.h` $(includedir)/nel/ai/script + + +uninstall-local: + rm -rf $(includedir)/nel + + +dist-hook: + cp -pr $(srcdir)/nel $(distdir) + rm -rf $(distdir)/CVS \ + $(distdir)/nel/CVS \ + $(distdir)/nel/misc/CVS \ + $(distdir)/nel/net/CVS \ + $(distdir)/nel/3d/CVS \ + $(distdir)/nel/3d/tmp/CVS \ + $(distdir)/nel/ai/CVS \ + $(distdir)/nel/ai/agent/CVS \ + $(distdir)/nel/ai/c/CVS \ + $(distdir)/nel/ai/e/CVS \ + $(distdir)/nel/ai/fuzzy/CVS \ + $(distdir)/nel/ai/link/CVS \ + $(distdir)/nel/ai/logic/CVS \ + $(distdir)/nel/ai/nimat/CVS \ + $(distdir)/nel/ai/pyserver/CVS \ + $(distdir)/nel/ai/script/CVS \ + $(distdir)/nel/db/CVS \ + $(distdir)/nel/python/CVS \ + $(distdir)/nel/sys/CVS + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.9&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.9&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..11ce70de --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/include/Makefile.am?rev=1.9&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,65 @@ +# +# $Id: Makefile.am,v 1.9 2001/03/05 18:16:32 valignat Exp $ +# + +install-exec-local: + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d + $(INSTALL_PROGRAM) -d $(includedir)/nel/3d/tmp + $(INSTALL_PROGRAM) -d $(includedir)/nel/misc + $(INSTALL_PROGRAM) -d $(includedir)/nel/net + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/agent + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/c + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/e + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/fuzzy + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/logic + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/nimat + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/pyserver + $(INSTALL_PROGRAM) -d $(includedir)/nel/ai/script + $(INSTALL_PROGRAM) -d $(includedir)/nel/db + $(INSTALL_PROGRAM) -d $(includedir)/nel/python + $(INSTALL_PROGRAM) -d $(includedir)/nel/sys + $(INSTALL_DATA) -m a=r `echo nel/*.h` $(includedir)/nel + $(INSTALL_DATA) -m a=r `echo nel/3d/*.h` $(includedir)/nel/3d + $(INSTALL_DATA) -m a=r `echo nel/3d/tmp/*.h` $(includedir)/nel/3d/tmp + $(INSTALL_DATA) -m a=r `echo nel/misc/*.h` $(includedir)/nel/misc + $(INSTALL_DATA) -m a=r `echo nel/net/*.h` $(includedir)/nel/net + $(INSTALL_DATA) -m a=r `echo nel/ai/*.h` $(includedir)/nel/ai/ + $(INSTALL_DATA) -m a=r `echo nel/ai/agent/*.h` $(includedir)/nel/ai/agent + $(INSTALL_DATA) -m a=r `echo nel/ai/c/*.h` $(includedir)/nel/ai/c + $(INSTALL_DATA) -m a=r `echo nel/ai/e/*.h` $(includedir)/nel/ai/e + $(INSTALL_DATA) -m a=r `echo nel/ai/fuzzy/*.h` $(includedir)/nel/ai/fuzzy + $(INSTALL_DATA) -m a=r `echo nel/ai/logic/*.h` $(includedir)/nel/ai/logic + $(INSTALL_DATA) -m a=r `echo nel/ai/nimat/*.h` $(includedir)/nel/ai/nimat + $(INSTALL_DATA) -m a=r `echo nel/ai/pyserver/*.h` $(includedir)/nel/ai/pyserver + $(INSTALL_DATA) -m a=r `echo nel/ai/script/*.h` $(includedir)/nel/ai/script + + +uninstall-local: + rm -rf $(includedir)/nel + + +dist-hook: + cp -pr $(srcdir)/nel $(distdir) + rm -rf $(distdir)/CVS \ + $(distdir)/nel/CVS \ + $(distdir)/nel/misc/CVS \ + $(distdir)/nel/net/CVS \ + $(distdir)/nel/3d/CVS \ + $(distdir)/nel/3d/tmp/CVS \ + $(distdir)/nel/ai/CVS \ + $(distdir)/nel/ai/agent/CVS \ + $(distdir)/nel/ai/c/CVS \ + $(distdir)/nel/ai/e/CVS \ + $(distdir)/nel/ai/fuzzy/CVS \ + $(distdir)/nel/ai/logic/CVS \ + $(distdir)/nel/ai/nimat/CVS \ + $(distdir)/nel/ai/pyserver/CVS \ + $(distdir)/nel/ai/script/CVS \ + $(distdir)/nel/db/CVS \ + $(distdir)/nel/python/CVS \ + $(distdir)/nel/sys/CVS + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.1&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.1&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..b75bcbe0 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.1&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,171 @@ +#!/bin/sh + +# +# $Id: nel-config.in,v 1.1 2001/05/02 17:11:33 valignat Exp $ +# +# nel-config +# +# Script printing NeL's install library/include paths and some other +# informations like NeL's version +# + +prefix=@prefix@ +exec_prefix=@exec_prefix@ + +lib_dir=@libdir@ +include_dir=@includedir@ + +usage() +{ + cat <&2 +fi + +while test $# -gt 0 +do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --prefix=*) + prefix=$optarg + local_prefix=yes + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + local_prefix=yes + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --version) + echo @VERSION@ + exit 0 + ;; + --cflags) + echo_cflags=yes + ;; + --libs) + echo_libs=yes + ;; + --libtool) + echo_libtool=yes + ;; + --without-3d) + without_3d=yes + ;; + --without-ai) + without_ai=yes + ;; + --without-net|--without-network) + without_net=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +if test "$local_prefix" = "yes" +then + if test "$exec_prefix_set" != "yes" + then + exec_prefix=$prefix + fi +fi + +if test "$echo_prefix" = "yes" +then + echo $prefix +fi + +if test "$echo_exec_prefix" = "yes" +then + echo $exec_prefix +fi + +if test "$echo_cflags" = "yes" +then + cflags="-I$include_dir/" + echo $cflags +fi + +if test "$echo_libs" = "yes" +then + lib_misc="-lnelmisc" + lib_3d="-lnel3d" + lib_ai="-lnelai" + lib_net="-lnelnet" + + libs="$lib_misc" + + if test "$without_3d" != "yes" + then + libs="$libs $lib_3d" + fi + + if test "$without_ai" != "yes" + then + libs="$libs $lib_ai" + fi + + if test "$without_net" != "yes" + then + libs="$libs $lib_net" + fi + + echo -L@libdir@ $libs +fi + +if test "$echo_libtool" = "yes" +then + libtool_misc="$lib_dir/libnelmisc.la" + libtool_3d="$lib_dir/libnel3d.la" + libtool_ai="$lib_dir/libnelai.la" + libtool_net="$lib_dir/libnelnet.la" + + libtool="$libtool_misc" + + if test "$without_3d" != "yes" + then + libtool="$libtool $libtool_3d" + fi + + if test "$without_ai" != "yes" + then + libtool="$libtool $libtool_ai" + fi + + if test "$without_net" != "yes" + then + libtool="$libtool $libtool_net" + fi + + echo $libtool +fi + +# EOF diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.2&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.2&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..e8a3b2a7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.2&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,210 @@ +#!/bin/sh + +# +# $Id: nel-config.in,v 1.2 2001/11/07 16:25:13 valignat Exp $ +# +# nel-config +# +# Script printing NeL's install library/include paths and some other +# informations like NeL's version +# + +prefix=@prefix@ +exec_prefix=@exec_prefix@ + +lib_dir=@libdir@ +include_dir=@includedir@ + +enable_net=@enable_net@ +enable_3d=@enable_3d@ +enable_pacs=@enable_pacs@ +enable_sound=@enable_sound@ +enable_ai=@enable_ai@ + +usage() +{ + cat <&2 +fi + +while test $# -gt 0 +do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --prefix=*) + prefix=$optarg + local_prefix=yes + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + local_prefix=yes + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --version) + echo @VERSION@ + exit 0 + ;; + --cflags) + echo_cflags=yes + ;; + --libs) + echo_libs=yes + ;; + --libtool) + echo_libtool=yes + ;; + --without-net|--without-network) + without_net=yes + ;; + --without-3d) + without_3d=yes + ;; + --without-pacs) + without_pacs=yes + ;; + --without-ai) + without_ai=yes + ;; + --without-snd|--without-sound) + without_sound=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +if test "$local_prefix" = "yes" +then + if test "$exec_prefix_set" != "yes" + then + exec_prefix=$prefix + fi +fi + +if test "$echo_prefix" = "yes" +then + echo $prefix +fi + +if test "$echo_exec_prefix" = "yes" +then + echo $exec_prefix +fi + +if test "$echo_cflags" = "yes" +then + cflags="-I$include_dir/" + echo $cflags +fi + +if test "$echo_libs" = "yes" +then + lib_misc="-lnelmisc" + lib_net="-lnelnet" + lib_3d="-lnel3d" + lib_pacs="-lnelpacs" + lib_sound="-lnelsnd" + lib_ai="-lnelai" + + libs="$lib_misc" + + if test "$without_net" != "yes" -a "$enable_net" = "yes" + then + libs="$libs $lib_net" + fi + + if test "$without_3d" != "yes" -a "$enable_3d" = "yes" + then + libs="$libs $lib_3d" + fi + + if test "$without_pacs" != "yes" -a "$enable_pacs" = "yes" + then + libs="$libs $lib_pacs" + fi + + if test "$without_sound" != "yes" -a "$enable_sound" = "yes" + then + libs="$libs $lib_sound" + fi + + if test "$without_ai" != "yes" -a "$enable_ai" = "yes" + then + libs="$libs $lib_ai" + fi + + echo -L@libdir@ $libs +fi + +if test "$echo_libtool" = "yes" +then + libtool_misc="$lib_dir/libnelmisc.la" + libtool_net="$lib_dir/libnelnet.la" + libtool_3d="$lib_dir/libnel3d.la" + libtool_pacs="$lib_dir/libnelpacs.la" + libtool_sound="$lib_dir/libnelsnd.la" + libtool_ai="$lib_dir/libnelai.la" + + libtool="$libtool_misc" + + if test "$without_net" != "yes" + then + libtool="$libtool $libtool_net" + fi + + if test "$without_3d" != "yes" + then + libtool="$libtool $libtool_3d" + fi + + if test "$without_pacs" != "yes" + then + libtool="$libtool $libtool_pacs" + fi + + if test "$without_sound" != "yes" + then + libtool="$libtool $libtool_sound" + fi + + if test "$without_ai" != "yes" + then + libtool="$libtool $libtool_ai" + fi + + echo $libtool +fi + +# EOF + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&content-type=text/plain&sortby=author&only_with_tag=georges_v2/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&content-type=text/plain&sortby=author&only_with_tag=georges_v2/index.html new file mode 100644 index 00000000..68cd1e5a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&content-type=text/plain&sortby=author&only_with_tag=georges_v2/index.html @@ -0,0 +1,220 @@ +#!/bin/sh + +# +# $Id: nel-config.in,v 1.3 2002/03/19 17:42:48 valignat Exp $ +# +# nel-config +# +# Script printing NeL's install library/include paths and some other +# informations like NeL's version +# + +prefix=@prefix@ +exec_prefix=@exec_prefix@ + +lib_dir=@libdir@ +include_dir=@includedir@ + +enable_net=@enable_net@ +enable_3d=@enable_3d@ +enable_pacs=@enable_pacs@ +enable_sound=@enable_sound@ +enable_ai=@enable_ai@ + +usage() +{ + cat <&2 +fi + +while test $# -gt 0 +do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --prefix=*) + prefix=$optarg + local_prefix=yes + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + local_prefix=yes + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --version) + echo @VERSION@ + exit 0 + ;; + --cflags) + echo_cflags=yes + ;; + --ldflags) + echo_ldflags=yes + ;; + --libs) + echo_libs=yes + ;; + --libtool) + echo_libtool=yes + ;; + --without-net|--without-network) + without_net=yes + ;; + --without-3d) + without_3d=yes + ;; + --without-pacs) + without_pacs=yes + ;; + --without-ai) + without_ai=yes + ;; + --without-snd|--without-sound) + without_sound=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +if test "$local_prefix" = "yes" +then + if test "$exec_prefix_set" != "yes" + then + exec_prefix=$prefix + fi +fi + +if test "$echo_prefix" = "yes" +then + echo $prefix +fi + +if test "$echo_exec_prefix" = "yes" +then + echo $exec_prefix +fi + +if test "$echo_cflags" = "yes" +then + cflags="-I$include_dir/" + echo $cflags +fi + +if test "$echo_ldflags" = "yes" +then + ldflags="-L$lib_dir" + echo $ldflags +fi + +if test "$echo_libs" = "yes" +then + lib_misc="-lnelmisc" + lib_net="-lnelnet" + lib_3d="-lnel3d" + lib_pacs="-lnelpacs" + lib_sound="-lnelsnd" + lib_ai="-lnelai" + + libs="$lib_misc" + + if test "$without_net" != "yes" -a "$enable_net" = "yes" + then + libs="$libs $lib_net" + fi + + if test "$without_3d" != "yes" -a "$enable_3d" = "yes" + then + libs="$libs $lib_3d" + fi + + if test "$without_pacs" != "yes" -a "$enable_pacs" = "yes" + then + libs="$libs $lib_pacs" + fi + + if test "$without_sound" != "yes" -a "$enable_sound" = "yes" + then + libs="$libs $lib_sound" + fi + + if test "$without_ai" != "yes" -a "$enable_ai" = "yes" + then + libs="$libs $lib_ai" + fi + + echo -L@libdir@ $libs +fi + +if test "$echo_libtool" = "yes" +then + libtool_misc="$lib_dir/libnelmisc.la" + libtool_net="$lib_dir/libnelnet.la" + libtool_3d="$lib_dir/libnel3d.la" + libtool_pacs="$lib_dir/libnelpacs.la" + libtool_sound="$lib_dir/libnelsnd.la" + libtool_ai="$lib_dir/libnelai.la" + + libtool="$libtool_misc" + + if test "$without_net" != "yes" + then + libtool="$libtool $libtool_net" + fi + + if test "$without_3d" != "yes" + then + libtool="$libtool $libtool_3d" + fi + + if test "$without_pacs" != "yes" + then + libtool="$libtool $libtool_pacs" + fi + + if test "$without_sound" != "yes" + then + libtool="$libtool $libtool_sound" + fi + + if test "$without_ai" != "yes" + then + libtool="$libtool $libtool_ai" + fi + + echo $libtool +fi + +# EOF + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..68cd1e5a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,220 @@ +#!/bin/sh + +# +# $Id: nel-config.in,v 1.3 2002/03/19 17:42:48 valignat Exp $ +# +# nel-config +# +# Script printing NeL's install library/include paths and some other +# informations like NeL's version +# + +prefix=@prefix@ +exec_prefix=@exec_prefix@ + +lib_dir=@libdir@ +include_dir=@includedir@ + +enable_net=@enable_net@ +enable_3d=@enable_3d@ +enable_pacs=@enable_pacs@ +enable_sound=@enable_sound@ +enable_ai=@enable_ai@ + +usage() +{ + cat <&2 +fi + +while test $# -gt 0 +do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --prefix=*) + prefix=$optarg + local_prefix=yes + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + local_prefix=yes + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --version) + echo @VERSION@ + exit 0 + ;; + --cflags) + echo_cflags=yes + ;; + --ldflags) + echo_ldflags=yes + ;; + --libs) + echo_libs=yes + ;; + --libtool) + echo_libtool=yes + ;; + --without-net|--without-network) + without_net=yes + ;; + --without-3d) + without_3d=yes + ;; + --without-pacs) + without_pacs=yes + ;; + --without-ai) + without_ai=yes + ;; + --without-snd|--without-sound) + without_sound=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +if test "$local_prefix" = "yes" +then + if test "$exec_prefix_set" != "yes" + then + exec_prefix=$prefix + fi +fi + +if test "$echo_prefix" = "yes" +then + echo $prefix +fi + +if test "$echo_exec_prefix" = "yes" +then + echo $exec_prefix +fi + +if test "$echo_cflags" = "yes" +then + cflags="-I$include_dir/" + echo $cflags +fi + +if test "$echo_ldflags" = "yes" +then + ldflags="-L$lib_dir" + echo $ldflags +fi + +if test "$echo_libs" = "yes" +then + lib_misc="-lnelmisc" + lib_net="-lnelnet" + lib_3d="-lnel3d" + lib_pacs="-lnelpacs" + lib_sound="-lnelsnd" + lib_ai="-lnelai" + + libs="$lib_misc" + + if test "$without_net" != "yes" -a "$enable_net" = "yes" + then + libs="$libs $lib_net" + fi + + if test "$without_3d" != "yes" -a "$enable_3d" = "yes" + then + libs="$libs $lib_3d" + fi + + if test "$without_pacs" != "yes" -a "$enable_pacs" = "yes" + then + libs="$libs $lib_pacs" + fi + + if test "$without_sound" != "yes" -a "$enable_sound" = "yes" + then + libs="$libs $lib_sound" + fi + + if test "$without_ai" != "yes" -a "$enable_ai" = "yes" + then + libs="$libs $lib_ai" + fi + + echo -L@libdir@ $libs +fi + +if test "$echo_libtool" = "yes" +then + libtool_misc="$lib_dir/libnelmisc.la" + libtool_net="$lib_dir/libnelnet.la" + libtool_3d="$lib_dir/libnel3d.la" + libtool_pacs="$lib_dir/libnelpacs.la" + libtool_sound="$lib_dir/libnelsnd.la" + libtool_ai="$lib_dir/libnelai.la" + + libtool="$libtool_misc" + + if test "$without_net" != "yes" + then + libtool="$libtool $libtool_net" + fi + + if test "$without_3d" != "yes" + then + libtool="$libtool $libtool_3d" + fi + + if test "$without_pacs" != "yes" + then + libtool="$libtool $libtool_pacs" + fi + + if test "$without_sound" != "yes" + then + libtool="$libtool $libtool_sound" + fi + + if test "$without_ai" != "yes" + then + libtool="$libtool $libtool_ai" + fi + + echo $libtool +fi + +# EOF + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.10&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.10&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..edbfe574 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.10&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,86 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "ia"=.\src\ai.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.11&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.11&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..af7be176 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.11&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,98 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "ia"=.\src\ai.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.12&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.12&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..faed2dba --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.12&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,86 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.13&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.13&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..cad63767 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.13&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,128 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_openal"=.\src\sound\driver\openal\driver_openal.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound"=.\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound_lowlevel"=.\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.14&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.14&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..a69ba467 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.14&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,134 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_openal"=.\src\sound\driver\openal\driver_openal.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound"=.\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "sound_lowlevel"=.\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.15&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.15&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..ad6ec46f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.15&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,170 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_openal"=.\src\sound\driver\openal\driver_openal.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "nel"=.\SRC\nel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_openal + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound"=.\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "sound_lowlevel"=.\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.16&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.16&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..f4a4ee29 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.16&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,182 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_openal"=.\src\sound\driver\openal\driver_openal.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "georges"=.\src\georges.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "nel"=.\SRC\nel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_openal + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound"=.\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "sound_lowlevel"=.\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.17&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.17&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..d2fbfea2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.17&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,200 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_openal"=.\src\sound\driver\openal\driver_openal.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "georges"=.\src\georges.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "ligo"=.\src\ligo.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "nel"=.\SRC\nel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_openal + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name georges + End Project Dependency + Begin Project Dependency + Project_Dep_Name ligo + End Project Dependency +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound"=.\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "sound_lowlevel"=.\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.18&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.18&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..36f04d6c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.18&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,212 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_openal"=.\src\sound\driver\openal\driver_openal.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "georges"=.\src\georges.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "logic"=.\src\logic.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "ligo"=.\src\ligo.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "nel"=.\SRC\nel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_openal + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name georges + End Project Dependency + Begin Project Dependency + Project_Dep_Name ligo + End Project Dependency +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound"=.\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "sound_lowlevel"=.\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.18&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.18&sortby=date new file mode 100644 index 00000000..36f04d6c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.18&sortby=date @@ -0,0 +1,212 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_openal"=.\src\sound\driver\openal\driver_openal.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "georges"=.\src\georges.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "logic"=.\src\logic.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "ligo"=.\src\ligo.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "nel"=.\SRC\nel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_openal + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency + Begin Project Dependency + Project_Dep_Name georges + End Project Dependency + Begin Project Dependency + Project_Dep_Name ligo + End Project Dependency +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=.\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound"=.\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "sound_lowlevel"=.\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.2&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.2&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..157ecbc4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.2&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,41 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.3&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.3&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..cdb328e3 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.3&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,53 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.4&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.4&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..14f9c52f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.4&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,59 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.5&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.5&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..b8f68814 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.5&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,71 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\driver_opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.6&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.6&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..2a67f3ce --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.6&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,74 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\driver_opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.7&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.7&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..f8493707 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.7&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,74 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.8&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.8&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..7aeb8016 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.8&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,86 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "ai"=.\SRC\ai\ai.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.9&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.9&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..119df8a5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.dsw?rev=1.9&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,86 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=.\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=.\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency +}}} + +############################################################################### + +Project: "ia"=.\src\ia.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "misc"=.\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=.\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.1&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.1&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..a70ffb60 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.1&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,60 @@ +Microsoft Visual Studio Solution File, Format Version 7.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "misc", "src\misc.vcproj", "{9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "net", "src\net.vcproj", "{36E1FA08-D98D-451A-BBD9-F84313B8F902}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "naming_service", "..\nelns\naming_service\naming_service.vcproj", "{049F2F16-66F6-4247-96B6-477E1EB946A0}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound", "src\sound.vcproj", "{81DDC7ED-AD35-4127-AC4B-A267DB17820A}" +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + ConfigName.0 = Debug + ConfigName.1 = DebugFast + ConfigName.2 = Release + ConfigName.3 = ReleaseDebug + EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.0 = {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D} + {049F2F16-66F6-4247-96B6-477E1EB946A0}.0 = {36E1FA08-D98D-451A-BBD9-F84313B8F902} + {049F2F16-66F6-4247-96B6-477E1EB946A0}.1 = {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D} + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.Debug.ActiveCfg = Debug|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.Debug.Build.0 = Debug|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.DebugFast.ActiveCfg = DebugFast|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.DebugFast.Build.0 = DebugFast|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.Release.ActiveCfg = Release|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.Release.Build.0 = Release|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.Debug.ActiveCfg = Debug|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.Debug.Build.0 = Debug|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.DebugFast.ActiveCfg = DebugFast|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.DebugFast.Build.0 = DebugFast|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.Release.ActiveCfg = Release|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.Release.Build.0 = Release|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.Debug.ActiveCfg = Debug|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.Debug.Build.0 = Debug|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.DebugFast.ActiveCfg = DebugFast|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.DebugFast.Build.0 = DebugFast|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.Release.ActiveCfg = Release|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.Release.Build.0 = Release|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.Debug.ActiveCfg = Debug|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.Debug.Build.0 = Debug|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.DebugFast.ActiveCfg = DebugFast|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.DebugFast.Build.0 = DebugFast|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.Release.ActiveCfg = Release|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.Release.Build.0 = Release|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.1&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.1&sortby=author new file mode 100644 index 00000000..a70ffb60 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.1&sortby=author @@ -0,0 +1,60 @@ +Microsoft Visual Studio Solution File, Format Version 7.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "misc", "src\misc.vcproj", "{9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "net", "src\net.vcproj", "{36E1FA08-D98D-451A-BBD9-F84313B8F902}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "naming_service", "..\nelns\naming_service\naming_service.vcproj", "{049F2F16-66F6-4247-96B6-477E1EB946A0}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound", "src\sound.vcproj", "{81DDC7ED-AD35-4127-AC4B-A267DB17820A}" +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + ConfigName.0 = Debug + ConfigName.1 = DebugFast + ConfigName.2 = Release + ConfigName.3 = ReleaseDebug + EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.0 = {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D} + {049F2F16-66F6-4247-96B6-477E1EB946A0}.0 = {36E1FA08-D98D-451A-BBD9-F84313B8F902} + {049F2F16-66F6-4247-96B6-477E1EB946A0}.1 = {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D} + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.Debug.ActiveCfg = Debug|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.Debug.Build.0 = Debug|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.DebugFast.ActiveCfg = DebugFast|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.DebugFast.Build.0 = DebugFast|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.Release.ActiveCfg = Release|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.Release.Build.0 = Release|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {9CD565BB-DABD-43A8-BBC5-BC2C0AE9609D}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.Debug.ActiveCfg = Debug|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.Debug.Build.0 = Debug|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.DebugFast.ActiveCfg = DebugFast|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.DebugFast.Build.0 = DebugFast|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.Release.ActiveCfg = Release|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.Release.Build.0 = Release|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {36E1FA08-D98D-451A-BBD9-F84313B8F902}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.Debug.ActiveCfg = Debug|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.Debug.Build.0 = Debug|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.DebugFast.ActiveCfg = DebugFast|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.DebugFast.Build.0 = DebugFast|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.Release.ActiveCfg = Release|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.Release.Build.0 = Release|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {049F2F16-66F6-4247-96B6-477E1EB946A0}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.Debug.ActiveCfg = Debug|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.Debug.Build.0 = Debug|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.DebugFast.ActiveCfg = DebugFast|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.DebugFast.Build.0 = DebugFast|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.Release.ActiveCfg = Release|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.Release.Build.0 = Release|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {81DDC7ED-AD35-4127-AC4B-A267DB17820A}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.2&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.2&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..9e26b15a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.2&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,129 @@ +Microsoft Visual Studio Solution File, Format Version 7.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "3d", "src\3d.vcproj", "{A76FD71B-4345-4D93-B3B9-30F960E6829F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "driver_openal", "src\sound\driver\openal\driver_openal.vcproj", "{F247F6C8-3391-4754-9BAA-371D6BE5A0C0}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "driver_opengl", "src\3d\driver\opengl\driver_opengl.vcproj", "{4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "georges", "src\georges.vcproj", "{19502567-F402-4742-9539-A534898A7849}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "logic", "src\logic.vcproj", "{2A913EEE-9244-4894-AB5A-881287F43F05}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ligo", "src\ligo.vcproj", "{D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "misc", "src\misc.vcproj", "{EF44EC28-8705-445E-B7FA-326F78207A85}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "net", "src\net.vcproj", "{CAE6602C-A566-42AC-ADA3-2A8F120D572D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pacs", "src\pacs.vcproj", "{B921D2BA-A92E-454C-8364-4042D5DC53E6}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound", "src\sound.vcproj", "{1AB13008-778E-49C6-9DCB-E5606FBF0A12}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound_lowlevel", "src\sound\driver\sound_lowlevel.vcproj", "{FA063B9D-69A3-48CD-8E36-91841DC12BE5}" +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + ConfigName.0 = Debug + ConfigName.1 = DebugFast + ConfigName.2 = Release + ConfigName.3 = ReleaseDebug + EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.0 = {A76FD71B-4345-4D93-B3B9-30F960E6829F} + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.1 = {EF44EC28-8705-445E-B7FA-326F78207A85} + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.Debug.ActiveCfg = Debug|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.Debug.Build.0 = Debug|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.DebugFast.ActiveCfg = DebugFast|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.DebugFast.Build.0 = DebugFast|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.Release.ActiveCfg = Release|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.Release.Build.0 = Release|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.Debug.ActiveCfg = Debug|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.Debug.Build.0 = Debug|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.DebugFast.ActiveCfg = DebugFast|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.DebugFast.Build.0 = DebugFast|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.Release.ActiveCfg = Release|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.Release.Build.0 = Release|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.Debug.ActiveCfg = Debug|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.Debug.Build.0 = Debug|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.DebugFast.ActiveCfg = DebugFast|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.DebugFast.Build.0 = DebugFast|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.Release.ActiveCfg = Release|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.Release.Build.0 = Release|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {19502567-F402-4742-9539-A534898A7849}.Debug.ActiveCfg = Debug|Win32 + {19502567-F402-4742-9539-A534898A7849}.Debug.Build.0 = Debug|Win32 + {19502567-F402-4742-9539-A534898A7849}.DebugFast.ActiveCfg = DebugFast|Win32 + {19502567-F402-4742-9539-A534898A7849}.DebugFast.Build.0 = DebugFast|Win32 + {19502567-F402-4742-9539-A534898A7849}.Release.ActiveCfg = Release|Win32 + {19502567-F402-4742-9539-A534898A7849}.Release.Build.0 = Release|Win32 + {19502567-F402-4742-9539-A534898A7849}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {19502567-F402-4742-9539-A534898A7849}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.Debug.ActiveCfg = Debug|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.Debug.Build.0 = Debug|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.DebugFast.ActiveCfg = DebugFast|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.DebugFast.Build.0 = DebugFast|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.Release.ActiveCfg = Release|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.Release.Build.0 = Release|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.Debug.ActiveCfg = Debug|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.Debug.Build.0 = Debug|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.DebugFast.ActiveCfg = DebugFast|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.DebugFast.Build.0 = DebugFast|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.Release.ActiveCfg = Release|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.Release.Build.0 = Release|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.Debug.ActiveCfg = Debug|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.Debug.Build.0 = Debug|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.DebugFast.ActiveCfg = DebugFast|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.DebugFast.Build.0 = DebugFast|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.Release.ActiveCfg = Release|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.Release.Build.0 = Release|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.Debug.ActiveCfg = Debug|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.Debug.Build.0 = Debug|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.DebugFast.ActiveCfg = DebugFast|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.DebugFast.Build.0 = DebugFast|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.Release.ActiveCfg = Release|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.Release.Build.0 = Release|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.Debug.ActiveCfg = Debug|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.Debug.Build.0 = Debug|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.DebugFast.ActiveCfg = DebugFast|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.DebugFast.Build.0 = DebugFast|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.Release.ActiveCfg = Release|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.Release.Build.0 = Release|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.Debug.ActiveCfg = Debug|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.Debug.Build.0 = Debug|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.DebugFast.ActiveCfg = DebugFast|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.DebugFast.Build.0 = DebugFast|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.Release.ActiveCfg = Release|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.Release.Build.0 = Release|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.Debug.ActiveCfg = Debug|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.Debug.Build.0 = Debug|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.DebugFast.ActiveCfg = DebugFast|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.DebugFast.Build.0 = DebugFast|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.Release.ActiveCfg = Release|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.Release.Build.0 = Release|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.2&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.2&sortby=date new file mode 100644 index 00000000..9e26b15a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/nel.sln?rev=1.2&sortby=date @@ -0,0 +1,129 @@ +Microsoft Visual Studio Solution File, Format Version 7.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "3d", "src\3d.vcproj", "{A76FD71B-4345-4D93-B3B9-30F960E6829F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "driver_openal", "src\sound\driver\openal\driver_openal.vcproj", "{F247F6C8-3391-4754-9BAA-371D6BE5A0C0}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "driver_opengl", "src\3d\driver\opengl\driver_opengl.vcproj", "{4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "georges", "src\georges.vcproj", "{19502567-F402-4742-9539-A534898A7849}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "logic", "src\logic.vcproj", "{2A913EEE-9244-4894-AB5A-881287F43F05}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ligo", "src\ligo.vcproj", "{D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "misc", "src\misc.vcproj", "{EF44EC28-8705-445E-B7FA-326F78207A85}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "net", "src\net.vcproj", "{CAE6602C-A566-42AC-ADA3-2A8F120D572D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pacs", "src\pacs.vcproj", "{B921D2BA-A92E-454C-8364-4042D5DC53E6}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound", "src\sound.vcproj", "{1AB13008-778E-49C6-9DCB-E5606FBF0A12}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound_lowlevel", "src\sound\driver\sound_lowlevel.vcproj", "{FA063B9D-69A3-48CD-8E36-91841DC12BE5}" +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + ConfigName.0 = Debug + ConfigName.1 = DebugFast + ConfigName.2 = Release + ConfigName.3 = ReleaseDebug + EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.0 = {A76FD71B-4345-4D93-B3B9-30F960E6829F} + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.1 = {EF44EC28-8705-445E-B7FA-326F78207A85} + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.Debug.ActiveCfg = Debug|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.Debug.Build.0 = Debug|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.DebugFast.ActiveCfg = DebugFast|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.DebugFast.Build.0 = DebugFast|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.Release.ActiveCfg = Release|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.Release.Build.0 = Release|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {A76FD71B-4345-4D93-B3B9-30F960E6829F}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.Debug.ActiveCfg = Debug|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.Debug.Build.0 = Debug|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.DebugFast.ActiveCfg = DebugFast|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.DebugFast.Build.0 = DebugFast|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.Release.ActiveCfg = Release|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.Release.Build.0 = Release|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {F247F6C8-3391-4754-9BAA-371D6BE5A0C0}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.Debug.ActiveCfg = Debug|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.Debug.Build.0 = Debug|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.DebugFast.ActiveCfg = DebugFast|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.DebugFast.Build.0 = DebugFast|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.Release.ActiveCfg = Release|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.Release.Build.0 = Release|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {4B74AEC8-2C6D-468C-B14D-34CA8FD46DB1}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {19502567-F402-4742-9539-A534898A7849}.Debug.ActiveCfg = Debug|Win32 + {19502567-F402-4742-9539-A534898A7849}.Debug.Build.0 = Debug|Win32 + {19502567-F402-4742-9539-A534898A7849}.DebugFast.ActiveCfg = DebugFast|Win32 + {19502567-F402-4742-9539-A534898A7849}.DebugFast.Build.0 = DebugFast|Win32 + {19502567-F402-4742-9539-A534898A7849}.Release.ActiveCfg = Release|Win32 + {19502567-F402-4742-9539-A534898A7849}.Release.Build.0 = Release|Win32 + {19502567-F402-4742-9539-A534898A7849}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {19502567-F402-4742-9539-A534898A7849}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.Debug.ActiveCfg = Debug|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.Debug.Build.0 = Debug|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.DebugFast.ActiveCfg = DebugFast|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.DebugFast.Build.0 = DebugFast|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.Release.ActiveCfg = Release|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.Release.Build.0 = Release|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {2A913EEE-9244-4894-AB5A-881287F43F05}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.Debug.ActiveCfg = Debug|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.Debug.Build.0 = Debug|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.DebugFast.ActiveCfg = DebugFast|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.DebugFast.Build.0 = DebugFast|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.Release.ActiveCfg = Release|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.Release.Build.0 = Release|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {D4DC4271-DE09-4E54-BDF8-BA9E617F53A3}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.Debug.ActiveCfg = Debug|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.Debug.Build.0 = Debug|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.DebugFast.ActiveCfg = DebugFast|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.DebugFast.Build.0 = DebugFast|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.Release.ActiveCfg = Release|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.Release.Build.0 = Release|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {EF44EC28-8705-445E-B7FA-326F78207A85}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.Debug.ActiveCfg = Debug|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.Debug.Build.0 = Debug|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.DebugFast.ActiveCfg = DebugFast|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.DebugFast.Build.0 = DebugFast|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.Release.ActiveCfg = Release|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.Release.Build.0 = Release|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {CAE6602C-A566-42AC-ADA3-2A8F120D572D}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.Debug.ActiveCfg = Debug|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.Debug.Build.0 = Debug|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.DebugFast.ActiveCfg = DebugFast|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.DebugFast.Build.0 = DebugFast|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.Release.ActiveCfg = Release|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.Release.Build.0 = Release|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {B921D2BA-A92E-454C-8364-4042D5DC53E6}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.Debug.ActiveCfg = Debug|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.Debug.Build.0 = Debug|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.DebugFast.ActiveCfg = DebugFast|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.DebugFast.Build.0 = DebugFast|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.Release.ActiveCfg = Release|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.Release.Build.0 = Release|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {1AB13008-778E-49C6-9DCB-E5606FBF0A12}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.Debug.ActiveCfg = Debug|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.Debug.Build.0 = Debug|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.DebugFast.ActiveCfg = DebugFast|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.DebugFast.Build.0 = DebugFast|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.Release.ActiveCfg = Release|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.Release.Build.0 = Release|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {FA063B9D-69A3-48CD-8E36-91841DC12BE5}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/samples/Jamfile?rev=1.1&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/samples/Jamfile?rev=1.1&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..4b2c7d9a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/samples/Jamfile?rev=1.1&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,8 @@ +# FreeType 2 src Jamfile (c) 2001 David Turner +# + +SubDir NEL_TOP samples ; + +SubInclude NEL_TOP samples service ; + +# end of src Jamfile diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/3d.vcproj?rev=1.2&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/3d.vcproj?rev=1.2&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..01186064 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/3d.vcproj?rev=1.2&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,2000 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/Jamfile?rev=1.1&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Jamfile?rev=1.1&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..869258fa --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Jamfile?rev=1.1&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,9 @@ +# FreeType 2 src Jamfile (c) 2001 David Turner +# + +SubDir NEL_TOP src ; + +SubInclude NEL_TOP src misc ; +SubInclude NEL_TOP src net ; + +# end of src Jamfile diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.1&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.1&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..66d8f978 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.1&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,10 @@ +# +# $Id: Makefile.am,v 1.1 2000/10/06 14:17:35 valignat Exp $ +# + +SUBDIRS= net 3d ai db misc sys python + +MAINTAINERCLEANFILES= Makefile.in + +# EOF + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.2&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.2&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..90ff68a7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.2&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,11 @@ +# +# $Id: Makefile.am,v 1.2 2000/11/23 11:51:35 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +SUBDIRS = misc net 3d + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.3&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.3&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..24f6be21 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.3&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,13 @@ +# +# $Id: Makefile.am,v 1.3 2000/11/24 14:13:35 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +SUBDIRS = misc net 3d + +EXTRA_DIST = misc.dsp net.dsp 3d.dsp + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.4&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.4&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..0b25674f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.4&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,13 @@ +# +# $Id: Makefile.am,v 1.4 2001/01/08 16:20:40 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +SUBDIRS = misc net 3d ai + +EXTRA_DIST = misc.dsp net.dsp 3d.dsp + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.5&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.5&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..24cd50bf --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.5&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,13 @@ +# +# $Id: Makefile.am,v 1.5 2001/01/12 09:31:47 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +SUBDIRS = misc net 3d ai + +EXTRA_DIST = misc.dsp net.dsp 3d.dsp ai.dsp + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.6&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.6&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..e931715d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.6&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,13 @@ +# +# $Id: Makefile.am,v 1.6 2001/06/13 18:05:00 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +SUBDIRS = @NEL_SUBDIRS@ + +EXTRA_DIST = misc.dsp net.dsp 3d.dsp ai.dsp + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..45cafade --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,15 @@ +# +# $Id: Makefile.am,v 1.7 2002/03/19 17:42:48 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +DIST_SUBDIRS = net 3d pacs sound ai misc + +SUBDIRS = @NEL_SUBDIRS@ + +EXTRA_DIST = misc.dsp net.dsp 3d.dsp ai.dsp + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.12&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.12&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..fc948448 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.12&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,956 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\messagerie.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.16&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.16&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..1c30bf0a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.16&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,964 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MDd /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.18&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.18&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..eff00230 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.18&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1015 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# SUBTRACT CPP /Z +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ia___Win32_ReleaseDebug" +# PROP Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# SUBTRACT CPP /FA +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Name "ia - Win32 ReleaseDebug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# Begin Group "nimat" + +# PROP Default_Filter "" +# Begin Group "n_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\nimat\classifier.cpp +# End Source File +# End Group +# Begin Group "n_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\black_box.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\classifier.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.21&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.21&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..9df0a944 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.21&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1045 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ia___Win32_ReleaseDebug" +# PROP Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Name "ia - Win32 ReleaseDebug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\gd_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\list_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_on_change.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\gd_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\key_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\list_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\gd_agent_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\gd_agent_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.24&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.24&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..cc153697 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.24&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1117 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ia___Win32_ReleaseDebug" +# PROP Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Name "ia - Win32 ReleaseDebug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\gd_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\list_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_on_change.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\gd_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\key_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\list_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\gd_agent_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\gd_agent_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# Begin Group "nimat" + +# PROP Default_Filter "" +# Begin Group "nimat_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\nimat\classifier.cpp +# End Source File +# End Group +# Begin Group "nimat_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\black_box.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\classifier.h +# End Source File +# End Group +# End Group +# Begin Group "character" + +# PROP Default_Filter "" +# Begin Group "character_cpp" + +# PROP Default_Filter "*.cpp" +# Begin Source File + +SOURCE=.\ai\character\character.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\character\zone.cpp +# End Source File +# End Group +# Begin Group "character_h" + +# PROP Default_Filter "*.h" +# Begin Source File + +SOURCE=..\include\nel\ai\character\character.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\character\zone.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.26&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.26&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..662b5ea4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.26&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1189 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ia___Win32_ReleaseDebug" +# PROP Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Name "ia - Win32 ReleaseDebug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_3dvector.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_input.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\gd_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\list_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_on_change.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_3dvector.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_input.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\gd_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\identtype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\key_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\list_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent_init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\static_init.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_seq_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_seq_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_fsm.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\gd_agent_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_fsm.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\gd_agent_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# Begin Group "nimat" + +# PROP Default_Filter "" +# Begin Group "nimat_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\nimat\classifier.cpp +# End Source File +# End Group +# Begin Group "nimat_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\black_box.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\classifier.h +# End Source File +# End Group +# End Group +# Begin Group "character" + +# PROP Default_Filter "" +# Begin Group "character_cpp" + +# PROP Default_Filter "*.cpp" +# Begin Source File + +SOURCE=.\ai\character\character.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\character\zone.cpp +# End Source File +# End Group +# Begin Group "character_h" + +# PROP Default_Filter "*.h" +# Begin Source File + +SOURCE=..\include\nel\ai\character\character.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\character\zone.h +# End Source File +# End Group +# End Group +# Begin Group "tools" + +# PROP Default_Filter "" +# Begin Group "tolls_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\tools\automata_desc.cpp +# End Source File +# End Group +# Begin Group "tools_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\tools\automata_desc.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.27&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.27&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..57c54225 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.27&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1189 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ia___Win32_ReleaseDebug" +# PROP Intermediate_Dir "ia___Win32_ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Name "ia - Win32 ReleaseDebug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_3dvector.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_input.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\gd_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\list_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_on_change.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_3dvector.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_input.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\gd_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\identtype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\key_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\list_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent_init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\static_init.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_seq_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_seq_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_fsm.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\gd_agent_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_fsm.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\gd_agent_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# Begin Group "nimat" + +# PROP Default_Filter "" +# Begin Group "nimat_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\nimat\classifier.cpp +# End Source File +# End Group +# Begin Group "nimat_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\black_box.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\classifier.h +# End Source File +# End Group +# End Group +# Begin Group "character" + +# PROP Default_Filter "" +# Begin Group "character_cpp" + +# PROP Default_Filter "*.cpp" +# Begin Source File + +SOURCE=.\ai\character\character.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\character\zone.cpp +# End Source File +# End Group +# Begin Group "character_h" + +# PROP Default_Filter "*.h" +# Begin Source File + +SOURCE=..\include\nel\ai\character\character.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\character\zone.h +# End Source File +# End Group +# End Group +# Begin Group "tools" + +# PROP Default_Filter "" +# Begin Group "tolls_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\tools\automata_desc.cpp +# End Source File +# End Group +# Begin Group "tools_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\tools\automata_desc.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.35&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.35&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..1dbfafce --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.35&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1222 @@ +# Microsoft Developer Studio Project File - Name="ai" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ai - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ai - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ai - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ai - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ai - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ai - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /Fd"../lib/nlai" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlai.lib" + +!ELSEIF "$(CFG)" == "ai - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /Fd"../lib/nlnet_debug" /FD /GZ /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlai_debug.lib" + +!ELSEIF "$(CFG)" == "ai - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ReleaseDebug" +# PROP BASE Intermediate_Dir "ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /Fd"../lib/nlai_rd" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlai_rd.lib" + +!ENDIF + +# Begin Target + +# Name "ai - Win32 Release" +# Name "ai - Win32 Debug" +# Name "ai - Win32 ReleaseDebug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_3dvector.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_input.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_timer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\gd_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\list_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_on_change.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\volatil_memory.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_3dvector.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_input.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_timer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\gd_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\identtype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\key_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\list_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\volatil_memory.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent_init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\static_init.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_seq_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var_mem.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\action_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_seq_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_fsm.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var_mem.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\gd_agent_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_fsm.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\gd_agent_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\init.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# Begin Group "nimat" + +# PROP Default_Filter "" +# Begin Group "nimat_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\nimat\classifier.cpp +# End Source File +# End Group +# Begin Group "nimat_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\black_box.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\classifier.h +# End Source File +# End Group +# End Group +# Begin Group "character" + +# PROP Default_Filter "" +# Begin Group "character_cpp" + +# PROP Default_Filter "*.cpp" +# Begin Source File + +SOURCE=.\ai\character\character.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\character\zone.cpp +# End Source File +# End Group +# Begin Group "character_h" + +# PROP Default_Filter "*.h" +# Begin Source File + +SOURCE=..\include\nel\ai\character\character.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\character\zone.h +# End Source File +# End Group +# End Group +# Begin Group "tools" + +# PROP Default_Filter "" +# Begin Group "tolls_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\tools\automata_desc.cpp +# End Source File +# End Group +# Begin Group "tools_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\tools\automata_desc.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.36&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.36&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..cdab87cf --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.36&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1222 @@ +# Microsoft Developer Studio Project File - Name="ai" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ai - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ai - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ai - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ai - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ai - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ai - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlai.lib" + +!ELSEIF "$(CFG)" == "ai - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /FD /GZ /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlai_debug.lib" + +!ELSEIF "$(CFG)" == "ai - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ReleaseDebug" +# PROP BASE Intermediate_Dir "ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlai_rd.lib" + +!ENDIF + +# Begin Target + +# Name "ai - Win32 Release" +# Name "ai - Win32 Debug" +# Name "ai - Win32 ReleaseDebug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_3dvector.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_input.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_timer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\gd_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\list_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_on_change.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\volatil_memory.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_3dvector.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_input.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_timer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\gd_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\identtype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\key_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\list_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\volatil_memory.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent_init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\static_init.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_seq_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var_mem.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\action_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_seq_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_fsm.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var_mem.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\gd_agent_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_fsm.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\gd_agent_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\init.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# Begin Group "nimat" + +# PROP Default_Filter "" +# Begin Group "nimat_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\nimat\classifier.cpp +# End Source File +# End Group +# Begin Group "nimat_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\black_box.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\classifier.h +# End Source File +# End Group +# End Group +# Begin Group "character" + +# PROP Default_Filter "" +# Begin Group "character_cpp" + +# PROP Default_Filter "*.cpp" +# Begin Source File + +SOURCE=.\ai\character\character.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\character\zone.cpp +# End Source File +# End Group +# Begin Group "character_h" + +# PROP Default_Filter "*.h" +# Begin Source File + +SOURCE=..\include\nel\ai\character\character.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\character\zone.h +# End Source File +# End Group +# End Group +# Begin Group "tools" + +# PROP Default_Filter "" +# Begin Group "tolls_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\tools\automata_desc.cpp +# End Source File +# End Group +# Begin Group "tools_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\tools\automata_desc.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.40&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.40&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..b75cc6cc --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.40&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1279 @@ +# Microsoft Developer Studio Project File - Name="ai_lib" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ai_lib - Win32 DebugFast +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ai_lib - Win32 DebugFast" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ai_lib - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ai_lib - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ai_lib - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE "ai_lib - Win32 DebugFast" (based on "Win32 (x86) Static Library") +!MESSAGE "ai_lib - Win32 ReleaseProfile" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ai_lib - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"..\lib\nlai.lib" + +!ELSEIF "$(CFG)" == "ai_lib - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"..\lib\nlai_debug.lib" + +!ELSEIF "$(CFG)" == "ai_lib - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ReleaseDebug" +# PROP BASE Intermediate_Dir "ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ReleaseDebug" +# PROP Intermediate_Dir "ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"..\lib\nlai_rd.lib" + +!ELSEIF "$(CFG)" == "ai_lib - Win32 DebugFast" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ai_lib___Win32_DebugFast" +# PROP BASE Intermediate_Dir "ai_lib___Win32_DebugFast" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "DebugFast" +# PROP Intermediate_Dir "DebugFast" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\lib\nlai_lib_debug.lib" +# ADD LIB32 /nologo /out:"..\lib\nlai_debug_fast.lib" + +!ELSEIF "$(CFG)" == "ai_lib - Win32 ReleaseProfile" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ai_lib___Win32_ReleaseProfile" +# PROP BASE Intermediate_Dir "ai_lib___Win32_ReleaseProfile" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ReleaseProfile" +# PROP Intermediate_Dir "ReleaseProfile" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\lib\nlai_lib.lib" +# ADD LIB32 /nologo /out:"..\lib\nlai_profile.lib" + +!ENDIF + +# Begin Target + +# Name "ai_lib - Win32 Release" +# Name "ai_lib - Win32 Debug" +# Name "ai_lib - Win32 ReleaseDebug" +# Name "ai_lib - Win32 DebugFast" +# Name "ai_lib - Win32 ReleaseProfile" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_3dvector.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_input.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_timer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\list_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_getvalue.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_on_change.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_stream.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\volatil_memory.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_3dvector.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_input.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_timer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\goal_stack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\identtype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\key_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\list_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_stream.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\volatil_memory.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent_init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\static_init.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_seq_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\goal_stack.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var_mem.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\action_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_seq_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\goal_stack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_fsm.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var_mem.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_fsm.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_getvalue.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\init.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# Begin Group "nimat" + +# PROP Default_Filter "" +# Begin Group "nimat_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\nimat\classifier.cpp +# End Source File +# End Group +# Begin Group "nimat_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\black_box.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\classifier.h +# End Source File +# End Group +# Begin Group "character" + +# PROP Default_Filter "" +# Begin Group "character_cpp" + +# PROP Default_Filter "*.cpp" +# Begin Source File + +SOURCE=.\ai\character\character.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\character\zone.cpp +# End Source File +# End Group +# Begin Group "character_h" + +# PROP Default_Filter "*.h" +# Begin Source File + +SOURCE=..\include\nel\ai\character\character.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\character\zone.h +# End Source File +# End Group +# End Group +# End Group +# Begin Group "tools" + +# PROP Default_Filter "" +# Begin Group "tolls_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\tools\automata_desc.cpp +# End Source File +# End Group +# Begin Group "tools_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\tools\automata_desc.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.42&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.42&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..c7b7a53a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.42&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1323 @@ +# Microsoft Developer Studio Project File - Name="ai" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ai - Win32 DebugFast +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ai - Win32 DebugFast" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ai - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ai - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ai - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE "ai - Win32 DebugFast" (based on "Win32 (x86) Static Library") +!MESSAGE "ai - Win32 ReleaseProfile" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ai - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"..\lib\nlai.lib" + +!ELSEIF "$(CFG)" == "ai - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"..\lib\nlai_debug.lib" + +!ELSEIF "$(CFG)" == "ai - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ReleaseDebug" +# PROP BASE Intermediate_Dir "ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ReleaseDebug" +# PROP Intermediate_Dir "ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"..\lib\nlai_rd.lib" + +!ELSEIF "$(CFG)" == "ai - Win32 DebugFast" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ai___Win32_DebugFast" +# PROP BASE Intermediate_Dir "ai___Win32_DebugFast" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "DebugFast" +# PROP Intermediate_Dir "DebugFast" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\lib\nlai_debug.lib" +# ADD LIB32 /nologo /out:"..\lib\nlai_debug_fast.lib" + +!ELSEIF "$(CFG)" == "ai - Win32 ReleaseProfile" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ai___Win32_ReleaseProfile" +# PROP BASE Intermediate_Dir "ai___Win32_ReleaseProfile" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ReleaseProfile" +# PROP Intermediate_Dir "ReleaseProfile" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\lib\nlai.lib" +# ADD LIB32 /nologo /out:"..\lib\nlai_profile.lib" + +!ENDIF + +# Begin Target + +# Name "ai - Win32 Release" +# Name "ai - Win32 Debug" +# Name "ai - Win32 ReleaseDebug" +# Name "ai - Win32 DebugFast" +# Name "ai - Win32 ReleaseProfile" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_3dvector.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_input.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_local_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_proxy_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_string.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_timer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\list_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_connect.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_getvalue.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_notify.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_on_change.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_setvalue.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_stream.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\volatil_memory.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_3dvector.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_input.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_local_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_proxy_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_timer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\goal_stack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\identtype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\key_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\list_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_connect.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_getvalue.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_notify.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_setvalue.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_stream.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\volatil_memory.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent_init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\static_init.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fsm_seq_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\goal.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\goal_stack.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var_mem.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\action_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fsm_seq_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\goal_stack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_fsm.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var_mem.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\init.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_fsm.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_action.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_connect.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_getvalue.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_message_setvalue.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\param_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\init.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_action.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_connect.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_getvalue.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_message_setvalue.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\param_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# Begin Group "nimat" + +# PROP Default_Filter "" +# Begin Group "nimat_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\nimat\classifier.cpp +# End Source File +# End Group +# Begin Group "nimat_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\black_box.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\nimat\classifier.h +# End Source File +# End Group +# Begin Group "character" + +# PROP Default_Filter "" +# Begin Group "character_cpp" + +# PROP Default_Filter "*.cpp" +# Begin Source File + +SOURCE=.\ai\character\character.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\character\zone.cpp +# End Source File +# End Group +# Begin Group "character_h" + +# PROP Default_Filter "*.h" +# Begin Source File + +SOURCE=..\include\nel\ai\character\character.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\character\zone.h +# End Source File +# End Group +# End Group +# End Group +# Begin Group "tools" + +# PROP Default_Filter "" +# Begin Group "tolls_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\tools\automata_desc.cpp +# End Source File +# End Group +# Begin Group "tools_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\tools\automata_desc.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.5&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.5&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..25892355 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.5&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,916 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\messagerie.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.7&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.7&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..f97a706b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.7&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,928 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\messagerie.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.9&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.9&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..8888deb1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsp?rev=1.9&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,936 @@ +# Microsoft Developer Studio Project File - Name="ia" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ia - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ai.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ai.mak" CFG="ia - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ia - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ia - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ia - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "ia - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "ia - Win32 Release" +# Name "ia - Win32 Debug" +# Begin Group "agent" + +# PROP Default_Filter "" +# Begin Group "ag_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\agent\actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\actor_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_mailer.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_nombre.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\agents.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\baseai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\basic_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\digital.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\group_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\ident.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\init_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\mailbox.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\main_agent_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\message_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\msg_group.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\agent\paire_type.cpp +# End Source File +# End Group +# Begin Group "ag_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\actor_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_digital.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_mailer.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_method_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_nombre.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agent_string.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentexport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\agentpack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\baseai.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\ident.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\mailbox.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\main_agent_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\message_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\messagerie.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\msg_group.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\object_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\agent\performative.h +# End Source File +# End Group +# End Group +# Begin Group "common" + +# PROP Default_Filter "" +# Begin Group "c_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\c\ident_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_class.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\c\registry_type.cpp +# End Source File +# End Group +# Begin Group "c_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\c\abstract_interface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\python_export.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_class.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\c\registry_type.h +# End Source File +# End Group +# End Group +# Begin Group "fuzzy" + +# PROP Default_Filter "" +# Begin Group "f_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzy_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzycond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyfact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyrule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyruleset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzytype.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\fuzzyvar.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\fuzzy\interpret_fuzzy_controler.cpp +# End Source File +# End Group +# Begin Group "f_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzy_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzycond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyfact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyrule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyruleset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzytype.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\fuzzyvar.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\fuzzy\interpret_fuzzy_controler.h +# End Source File +# End Group +# End Group +# Begin Group "link" + +# PROP Default_Filter "" +# Begin Group "link_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\ai.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\static_def_init.cpp +# End Source File +# End Group +# Begin Group "link_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\nl_ai.h +# End Source File +# End Group +# End Group +# Begin Group "logic" + +# PROP Default_Filter "" +# Begin Group "l_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\logic\ai_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_cond.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\bool_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\boolval.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\clause.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fact.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\factbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_assert.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\fo_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\interpret_object_operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\operator_script.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\rule.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\valueset.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\var.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\logic\varset.cpp +# End Source File +# End Group +# Begin Group "l_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_cond.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\bool_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\boolval.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\clause.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fact.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\factbase.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\fo_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\goal.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\ia_assert.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\interpret_object_operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\logic.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\operator_script.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\rule.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\valueset.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\var.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\logic\varset.h +# End Source File +# End Group +# End Group +# Begin Group "pyserver" + +# PROP Default_Filter "" +# Begin Group "py_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\pyserver\pylib.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\pyserver\pythonmethode.cpp +# End Source File +# End Group +# Begin Group "py_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pylib.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\pyserver\pythonsupport.h +# End Source File +# End Group +# End Group +# Begin Group "script" + +# PROP Default_Filter "" +# Begin Group "scrp_cpp" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\codage.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\code_branche_run_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\compilateur.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_find_run.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_stack_component.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\constraint_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\context_debug.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\factor_type.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\hierarchy.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_actor.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_methodes.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_agent.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_manager.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\interpret_object_message.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexlang.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lexsupport.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\libcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\objects_load.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_lib_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_call_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_ldb.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_lpt.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\opcode_register.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\script_debug_source.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\test_method.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\type_def.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\var_control.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\yacc.cpp +# End Source File +# Begin Source File + +SOURCE=.\ai\script\ytable.cpp +# End Source File +# End Group +# Begin Group "scrp_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\script\codage.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\code_branche_run_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\compilateur.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_find_run.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_stack_component.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\constraint_type.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\context_debug.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_actor.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_methodes.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_agent.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_list.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_manager.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\interpret_object_message.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lex.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\lexsupport.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\libcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\module.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_load.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\object_unknown.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_lib_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_call_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_ldb.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\opcode_lpt.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\script_debug_source.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\test_method.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\type_def.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\unistd.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\varstack.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\virtual_op_code.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\script\ytable.h +# End Source File +# End Group +# Begin Group "lex&yacc" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\grammar.yacc +# End Source File +# Begin Source File + +SOURCE=.\ai\script\lex_yacc\lexicon.lex +# End Source File +# End Group +# End Group +# Begin Group "exception" + +# PROP Default_Filter "" +# Begin Group "e_cpp" + +# PROP Default_Filter "" +# End Group +# Begin Group "e_h" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\ai\e\ai_exception.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\ai\e\nel_exception_def.h +# End Source File +# End Group +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsw?rev=1.1&content-type=text/plain&sortby=log/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsw?rev=1.1&content-type=text/plain&sortby=log/index.html new file mode 100644 index 00000000..3314b03a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/ai.dsw?rev=1.1&content-type=text/plain&sortby=log/index.html @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "ai_lib"=.\ai_lib.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/misc.vcproj?rev=1.1&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/misc.vcproj?rev=1.1&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..c018cf7c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/misc.vcproj?rev=1.1&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,843 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/misc.vcproj?rev=1.2&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/misc.vcproj?rev=1.2&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..50b1d90e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/misc.vcproj?rev=1.2&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,868 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/nel.dsp?rev=1.1&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/nel.dsp?rev=1.1&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..bb983fd8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/nel.dsp?rev=1.1&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,93 @@ +# Microsoft Developer Studio Project File - Name="nel" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Generic Project" 0x010a + +CFG=nel - Win32 DebugFast +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "nel.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "nel.mak" CFG="nel - Win32 DebugFast" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "nel - Win32 Release" (based on "Win32 (x86) Generic Project") +!MESSAGE "nel - Win32 Debug" (based on "Win32 (x86) Generic Project") +!MESSAGE "nel - Win32 ReleaseDebug" (based on "Win32 (x86) Generic Project") +!MESSAGE "nel - Win32 DebugFast" (based on "Win32 (x86) Generic Project") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +MTL=midl.exe + +!IF "$(CFG)" == "nel - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" + +!ELSEIF "$(CFG)" == "nel - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" + +!ELSEIF "$(CFG)" == "nel - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "nel___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "nel___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "nel___Win32_ReleaseDebug" +# PROP Intermediate_Dir "nel___Win32_ReleaseDebug" +# PROP Target_Dir "" + +!ELSEIF "$(CFG)" == "nel - Win32 DebugFast" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "nel___Win32_DebugFast" +# PROP BASE Intermediate_Dir "nel___Win32_DebugFast" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "nel___Win32_DebugFast" +# PROP Intermediate_Dir "nel___Win32_DebugFast" +# PROP Target_Dir "" + +!ENDIF + +# Begin Target + +# Name "nel - Win32 Release" +# Name "nel - Win32 Debug" +# Name "nel - Win32 ReleaseDebug" +# Name "nel - Win32 DebugFast" +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.1&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.1&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..fa41c439 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.1&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,92 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_Release" +# PROP BASE Intermediate_Dir "pacs___Win32_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "pacs___Win32_Release" +# PROP Intermediate_Dir "pacs___Win32_Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_Debug" +# PROP BASE Intermediate_Dir "pacs___Win32_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "pacs___Win32_Debug" +# PROP Intermediate_Dir "pacs___Win32_Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.10&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.10&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..2296126a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.10&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,192 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_Release" +# PROP BASE Intermediate_Dir "pacs___Win32_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "pacs___Win32_Release" +# PROP Intermediate_Dir "pacs___Win32_Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_Debug" +# PROP BASE Intermediate_Dir "pacs___Win32_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "__STL_DEBUG" /FR /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\edge_collide.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_primitive.h +# End Source File +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.14&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.14&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..7cc0d6db --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.14&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,269 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "__STL_DEBUG" /FR /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "pacs - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ReleaseDebug" +# PROP Intermediate_Dir "ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "TEST_CELL" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Name "pacs - Win32 ReleaseDebug" +# Begin Group "Static Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\edge_collide.h +# End Source File +# End Group +# Begin Group "Dynamic Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include_private\nel\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\collision_ot.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_cell.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_container_inline.h +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_element.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_primitive.h +# End Source File +# End Group +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "User" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\pacs\u_collision_desc.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_primitive.h +# End Source File +# End Group +# Begin Group "UserImp" + +# PROP Default_Filter "" +# End Group +# Begin Source File + +SOURCE=..\include_private\nel\pacs\vector_2s.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.cpp +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.18&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.18&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..3b80b956 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.18&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,278 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /Fd"../lib/nlpacs" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "__STL_DEBUG" /FR /Fd"../lib/nlpacs_debug" /FD /GZ /c +# SUBTRACT CPP /YX +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /Fd"../lib/nlpacs_rd" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_rd.lib" + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Name "pacs - Win32 ReleaseDebug" +# Begin Group "Static Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\edge_collide.h +# End Source File +# End Group +# Begin Group "Dynamic Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include_private\nel\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\collision_ot.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_cell.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_container_inline.h +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_element.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\move_primitive.h +# End Source File +# End Group +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "User" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\pacs\u_collision_desc.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_retriever.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_primitive.h +# End Source File +# End Group +# Begin Group "UserImp" + +# PROP Default_Filter "" +# End Group +# Begin Source File + +SOURCE=.\pacs\vector_2s.cpp +# End Source File +# Begin Source File + +SOURCE=..\include_private\nel\pacs\vector_2s.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.2&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.2&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..7080dce3 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.2&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,108 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_Release" +# PROP BASE Intermediate_Dir "pacs___Win32_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "pacs___Win32_Release" +# PROP Intermediate_Dir "pacs___Win32_Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_Debug" +# PROP BASE Intermediate_Dir "pacs___Win32_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "pacs___Win32_Debug" +# PROP Intermediate_Dir "pacs___Win32_Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_primitive.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.21&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.21&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..475a951f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.21&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,310 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "__STL_DEBUG" /FR /FD /GZ /c +# SUBTRACT CPP /YX +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_rd.lib" + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Name "pacs - Win32 ReleaseDebug" +# Begin Group "Static Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.h +# End Source File +# End Group +# Begin Group "Dynamic Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\collision_callback.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_callback.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.h +# End Source File +# End Group +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "User" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\pacs\u_collision_desc.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_retriever.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_primitive.h +# End Source File +# End Group +# Begin Group "UserImp" + +# PROP Default_Filter "" +# End Group +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_position.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.23&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.23&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..980c37f7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.23&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,322 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "__STL_DEBUG" /FR /FD /GZ /c +# SUBTRACT CPP /YX +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_rd.lib" + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Name "pacs - Win32 ReleaseDebug" +# Begin Group "Static Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.h +# End Source File +# End Group +# Begin Group "Dynamic Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\collision_callback.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_callback.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.h +# End Source File +# End Group +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "User" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\pacs\u_collision_desc.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_position.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_retriever.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_primitive.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_retriever_bank.h +# End Source File +# End Group +# Begin Group "UserImp" + +# PROP Default_Filter "" +# End Group +# Begin Source File + +SOURCE=.\pacs\vector_2s.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.26&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.26&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..5f06c2ae --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.26&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,371 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 DebugFast +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 DebugFast" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 DebugFast" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /Fr /FD /GZ /c +# SUBTRACT CPP /Gy /YX +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_rd.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 DebugFast" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_DebugFast" +# PROP BASE Intermediate_Dir "pacs___Win32_DebugFast" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/DebugFast" +# PROP Intermediate_Dir "../obj/DebugFast" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /Fr /FD /GZ /c +# SUBTRACT BASE CPP /Gy /YX +# ADD CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Ob1 /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /Fr /FD /GZ /c +# SUBTRACT CPP /Gy /YX +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"../lib/nlpacs_debug.lib" +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug.lib" + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Name "pacs - Win32 ReleaseDebug" +# Name "pacs - Win32 DebugFast" +# Begin Group "Static Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_mesh_build.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\face_grid.h +# End Source File +# End Group +# Begin Group "Dynamic Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\collision_callback.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_callback.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.h +# End Source File +# End Group +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "User" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\pacs\u_collision_desc.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_position.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_retriever.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_primitive.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_retriever_bank.h +# End Source File +# End Group +# Begin Group "UserImp" + +# PROP Default_Filter "" +# End Group +# Begin Source File + +SOURCE=.\pacs\quad_grid.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.27&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.27&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..71e5361e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.27&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,371 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 DebugFast +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 DebugFast" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 DebugFast" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /Fr /FD /GZ /c +# SUBTRACT CPP /Gy /YX +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_rd.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 DebugFast" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_DebugFast" +# PROP BASE Intermediate_Dir "pacs___Win32_DebugFast" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/DebugFast" +# PROP Intermediate_Dir "../obj/DebugFast" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /Fr /FD /GZ /c +# SUBTRACT BASE CPP /Gy /YX +# ADD CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Ob1 /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /Fr /FD /GZ /c +# SUBTRACT CPP /Gy /YX +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"../lib/nlpacs_debug.lib" +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug_fast.lib" + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Name "pacs - Win32 ReleaseDebug" +# Name "pacs - Win32 DebugFast" +# Begin Group "Static Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_mesh_build.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\face_grid.h +# End Source File +# End Group +# Begin Group "Dynamic Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\collision_callback.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_callback.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.h +# End Source File +# End Group +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "User" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\pacs\u_collision_desc.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_position.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_retriever.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_primitive.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_retriever_bank.h +# End Source File +# End Group +# Begin Group "UserImp" + +# PROP Default_Filter "" +# End Group +# Begin Source File + +SOURCE=.\pacs\quad_grid.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.3&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.3&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..6d6197c8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.3&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,148 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_Release" +# PROP BASE Intermediate_Dir "pacs___Win32_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "pacs___Win32_Release" +# PROP Intermediate_Dir "pacs___Win32_Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_Debug" +# PROP BASE Intermediate_Dir "pacs___Win32_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "pacs___Win32_Debug" +# PROP Intermediate_Dir "pacs___Win32_Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_primitive.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\surface_quad.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.30&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.30&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..46397bbd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.30&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,380 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 DebugFast +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 DebugFast" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 DebugFast" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /Yu"stdpacs.h" /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Gf /D "_LIB" /D "__STL_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /Fr /Yu"stdpacs.h" /FD /GZ /c +# SUBTRACT CPP /Gy +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "NL_RELEASE_DEBUG" /Yu"stdpacs.h" /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_rd.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 DebugFast" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_DebugFast" +# PROP BASE Intermediate_Dir "pacs___Win32_DebugFast" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/DebugFast" +# PROP Intermediate_Dir "../obj/DebugFast" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /Fr /FD /GZ /c +# SUBTRACT BASE CPP /Gy /YX +# ADD CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Ob1 /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "NL_DEBUG_FAST" /Fr /Yu"stdpacs.h" /FD /GZ /c +# SUBTRACT CPP /Gy +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"../lib/nlpacs_debug.lib" +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug_fast.lib" + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Name "pacs - Win32 ReleaseDebug" +# Name "pacs - Win32 DebugFast" +# Begin Group "Static Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_mesh_build.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\face_grid.h +# End Source File +# End Group +# Begin Group "Dynamic Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\collision_callback.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_callback.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.h +# End Source File +# End Group +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "User" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\pacs\u_collision_desc.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_position.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_retriever.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_primitive.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_retriever_bank.h +# End Source File +# End Group +# Begin Group "UserImp" + +# PROP Default_Filter "" +# End Group +# Begin Source File + +SOURCE=.\pacs\quad_grid.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\stdpacs.cpp +# ADD CPP /Yc"stdpacs.h" +# End Source File +# Begin Source File + +SOURCE=.\pacs\stdpacs.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.33&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.33&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..c5906fb0 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.33&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,404 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 DebugFast +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 DebugFast" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 ReleaseDebug" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 DebugFast" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/Release" +# PROP Intermediate_Dir "../obj/Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /Yu"stdpacs.h" /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/Debug" +# PROP Intermediate_Dir "../obj/Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Gf /D "_LIB" /D "__STL_DEBUG" /D "_MBCS" /D "WIN32" /D "_DEBUG" /Fr /Yu"stdpacs.h" /FD /GZ /c +# SUBTRACT CPP /Gy +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 ReleaseDebug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Intermediate_Dir "pacs___Win32_ReleaseDebug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "../obj/ReleaseDebug" +# PROP Intermediate_Dir "../obj/ReleaseDebug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /Zi /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "NL_RELEASE_DEBUG" /Yu"stdpacs.h" /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"../lib/nlpacs_rd.lib" + +!ELSEIF "$(CFG)" == "pacs - Win32 DebugFast" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_DebugFast" +# PROP BASE Intermediate_Dir "pacs___Win32_DebugFast" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "../obj/DebugFast" +# PROP Intermediate_Dir "../obj/DebugFast" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "__STL_DEBUG" /Fr /FD /GZ /c +# SUBTRACT BASE CPP /Gy /YX +# ADD CPP /nologo /MDd /W3 /Gm /Gi /GR /GX /Zi /Od /Ob1 /Gf /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "NL_DEBUG_FAST" /Fr /Yu"stdpacs.h" /FD /GZ /c +# SUBTRACT CPP /Gy +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"../lib/nlpacs_debug.lib" +# ADD LIB32 /nologo /out:"../lib/nlpacs_debug_fast.lib" + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Name "pacs - Win32 ReleaseDebug" +# Name "pacs - Win32 DebugFast" +# Begin Group "Static Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_mesh_build.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_surface_temp.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_quad.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\exterior_mesh.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\face_grid.h +# End Source File +# End Group +# Begin Group "Dynamic Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\collision_callback.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_callback.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_ot.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_cell.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_element_inline.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_block.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_block_pacs.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\primitive_world_image.h +# End Source File +# End Group +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\global_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_bank.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "User" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=..\include\nel\pacs\u_collision_desc.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_position.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_global_retriever.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_container.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_move_primitive.h +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\u_retriever_bank.h +# End Source File +# End Group +# Begin Group "UserImp" + +# PROP Default_Filter "" +# End Group +# Begin Group "Build" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\build_indoor.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\build_indoor.h +# End Source File +# End Group +# Begin Source File + +SOURCE=.\pacs\Makefile.am +# End Source File +# Begin Source File + +SOURCE=.\pacs\quad_grid.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\stdpacs.cpp +# ADD CPP /Yc"stdpacs.h" +# End Source File +# Begin Source File + +SOURCE=.\pacs\stdpacs.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.cpp +# End Source File +# Begin Source File + +SOURCE=.\pacs\vector_2s.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.4&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.4&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..5695eff7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.4&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,140 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_Release" +# PROP BASE Intermediate_Dir "pacs___Win32_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "pacs___Win32_Release" +# PROP Intermediate_Dir "pacs___Win32_Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_Debug" +# PROP BASE Intermediate_Dir "pacs___Win32_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "pacs___Win32_Debug" +# PROP Intermediate_Dir "pacs___Win32_Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "__STL_DEBUG" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\surface_quad.h +# End Source File +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.6&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.6&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..eb656e4d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.dsp?rev=1.6&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,164 @@ +# Microsoft Developer Studio Project File - Name="pacs" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=pacs - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "pacs.mak" CFG="pacs - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "pacs - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "pacs - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "pacs - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "pacs___Win32_Release" +# PROP BASE Intermediate_Dir "pacs___Win32_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "pacs___Win32_Release" +# PROP Intermediate_Dir "pacs___Win32_Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /MD /W3 /GR /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x40c /d "NDEBUG" +# ADD RSC /l 0x40c /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "pacs - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "pacs___Win32_Debug" +# PROP BASE Intermediate_Dir "pacs___Win32_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "__STL_DEBUG" /YX /FD /GZ /c +# ADD BASE RSC /l 0x40c /d "_DEBUG" +# ADD RSC /l 0x40c /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "pacs - Win32 Release" +# Name "pacs - Win32 Debug" +# Begin Group "Pathfinding" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\chain.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\chain.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\local_retriever.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\local_retriever.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retrievable_surface.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retrievable_surface.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\retriever_instance.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\retriever_instance.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\surface_quad.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\surface_quad.h +# End Source File +# End Group +# Begin Group "Collisions" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\pacs\collision_desc.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\collision_desc.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\edge_collide.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\edge_collide.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_container.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_container.h +# End Source File +# Begin Source File + +SOURCE=.\pacs\move_primitive.cpp +# End Source File +# Begin Source File + +SOURCE=..\include\nel\pacs\move_primitive.h +# End Source File +# End Group +# End Target +# End Project diff --git a/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.vcproj?rev=1.2&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.vcproj?rev=1.2&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..d55a9a1f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nel/src/pacs.vcproj?rev=1.2&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,458 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/AUTHORS?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/AUTHORS?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..7fd550bd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/AUTHORS?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,7 @@ +Nevrax Team : + + Daniel Miller + Vianney Lecroart + Olivier Cado + Cedric Valignat + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1 new file mode 100644 index 00000000..bfa87d2e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1 @@ -0,0 +1,89 @@ +NEVRAX NeL Network Services Howto +23/01/2001 cado@nevrax.com +$Id: HOWTO,v 1.1 2001/04/18 13:54:25 valignat Exp $ +---------- + +The NEVRAX NeL Network Services is made up of one unique login service, one or +several shards (aka game servers), and a few utility services. +In this document, we'll assume you want to run your login service +and one shard on the same machine. + +You can't launch more than one shard on a computer. + +Services are compiled in debug mode by default. + +Once you have compiled the servers, you should have the following files +(shown in Unix naming scheme, for Windows add ".exe") in a single +directory (let's call it homedir/bin): +naming_service -> used to find a specific service by its name +log_service -> centralized logger for all services +time_service -> centralized time reference manager +login_service -> centralized user account manager for all shards +(admin_executor_service -> collects system stats +(agent_service -> agent message router + + +1. In the working directory (e.g. homedir), create the following files +(don't type the lines beginning with "-") + +-- ns.cfg -- +Host = "hostname_of_your_machine_where_naming_service_will_run"; +Port = 50000; +------------ +(This file is used by all services) + +-- ls.txt -- +Shards = { + "hostname_of_your_machine_where_game_service_will_run", "Name of the shard as it will appear on the client" +}; +------------ +(This file is used by login_service) + + +2. Launch the servers. +Here is a sample batch file, where you can find the right ordering : + +-- starts -- +nohup ~/bin/naming_service >/dev/null +nohup ~/bin/log_service >/dev/null +nohup ~/bin/time_service >/dev/null +nohup ~/bin/login_service >/dev/null +echo "Active services:" +ps -edf | grep _service | grep -v grep +echo "End services" +------------ + +3. To connect a client to your new shard, set +LSHost = "hostname_of_your_machine_where_login_service_runs"; +in its client.cfg +and create ns.cfg with the same contents as for the servers. +Then launch the client and enjoy :-) + + +4. The services create/modify the following config or log files: +- unitime.cfg (time_service) + Contains the time reference +- ls.txt (login_service) + Every time a new user (not registered before) logs in, its login + and password are saved into ls.txt +- ls.log (login_service) + Every time someone logs in, its configuration information is + saved into ls.log +- logs.log (very big especially if you have compiled the servers + with NL_DEBUG defined) (log_service) + Contains all debug information sent by the services. + + +5. How to shutdown the services +Here is a sample batch file: + +-- kills -- +kill -INT `ps -edf | grep bin/login_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/time_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/log_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/naming_service | grep -v grep | tr -s " " | cut -d' ' -f2` +-- kills -- + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..bfa87d2e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,89 @@ +NEVRAX NeL Network Services Howto +23/01/2001 cado@nevrax.com +$Id: HOWTO,v 1.1 2001/04/18 13:54:25 valignat Exp $ +---------- + +The NEVRAX NeL Network Services is made up of one unique login service, one or +several shards (aka game servers), and a few utility services. +In this document, we'll assume you want to run your login service +and one shard on the same machine. + +You can't launch more than one shard on a computer. + +Services are compiled in debug mode by default. + +Once you have compiled the servers, you should have the following files +(shown in Unix naming scheme, for Windows add ".exe") in a single +directory (let's call it homedir/bin): +naming_service -> used to find a specific service by its name +log_service -> centralized logger for all services +time_service -> centralized time reference manager +login_service -> centralized user account manager for all shards +(admin_executor_service -> collects system stats +(agent_service -> agent message router + + +1. In the working directory (e.g. homedir), create the following files +(don't type the lines beginning with "-") + +-- ns.cfg -- +Host = "hostname_of_your_machine_where_naming_service_will_run"; +Port = 50000; +------------ +(This file is used by all services) + +-- ls.txt -- +Shards = { + "hostname_of_your_machine_where_game_service_will_run", "Name of the shard as it will appear on the client" +}; +------------ +(This file is used by login_service) + + +2. Launch the servers. +Here is a sample batch file, where you can find the right ordering : + +-- starts -- +nohup ~/bin/naming_service >/dev/null +nohup ~/bin/log_service >/dev/null +nohup ~/bin/time_service >/dev/null +nohup ~/bin/login_service >/dev/null +echo "Active services:" +ps -edf | grep _service | grep -v grep +echo "End services" +------------ + +3. To connect a client to your new shard, set +LSHost = "hostname_of_your_machine_where_login_service_runs"; +in its client.cfg +and create ns.cfg with the same contents as for the servers. +Then launch the client and enjoy :-) + + +4. The services create/modify the following config or log files: +- unitime.cfg (time_service) + Contains the time reference +- ls.txt (login_service) + Every time a new user (not registered before) logs in, its login + and password are saved into ls.txt +- ls.log (login_service) + Every time someone logs in, its configuration information is + saved into ls.log +- logs.log (very big especially if you have compiled the servers + with NL_DEBUG defined) (log_service) + Contains all debug information sent by the services. + + +5. How to shutdown the services +Here is a sample batch file: + +-- kills -- +kill -INT `ps -edf | grep bin/login_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/time_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/log_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/naming_service | grep -v grep | tr -s " " | cut -d' ' -f2` +-- kills -- + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..bfa87d2e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,89 @@ +NEVRAX NeL Network Services Howto +23/01/2001 cado@nevrax.com +$Id: HOWTO,v 1.1 2001/04/18 13:54:25 valignat Exp $ +---------- + +The NEVRAX NeL Network Services is made up of one unique login service, one or +several shards (aka game servers), and a few utility services. +In this document, we'll assume you want to run your login service +and one shard on the same machine. + +You can't launch more than one shard on a computer. + +Services are compiled in debug mode by default. + +Once you have compiled the servers, you should have the following files +(shown in Unix naming scheme, for Windows add ".exe") in a single +directory (let's call it homedir/bin): +naming_service -> used to find a specific service by its name +log_service -> centralized logger for all services +time_service -> centralized time reference manager +login_service -> centralized user account manager for all shards +(admin_executor_service -> collects system stats +(agent_service -> agent message router + + +1. In the working directory (e.g. homedir), create the following files +(don't type the lines beginning with "-") + +-- ns.cfg -- +Host = "hostname_of_your_machine_where_naming_service_will_run"; +Port = 50000; +------------ +(This file is used by all services) + +-- ls.txt -- +Shards = { + "hostname_of_your_machine_where_game_service_will_run", "Name of the shard as it will appear on the client" +}; +------------ +(This file is used by login_service) + + +2. Launch the servers. +Here is a sample batch file, where you can find the right ordering : + +-- starts -- +nohup ~/bin/naming_service >/dev/null +nohup ~/bin/log_service >/dev/null +nohup ~/bin/time_service >/dev/null +nohup ~/bin/login_service >/dev/null +echo "Active services:" +ps -edf | grep _service | grep -v grep +echo "End services" +------------ + +3. To connect a client to your new shard, set +LSHost = "hostname_of_your_machine_where_login_service_runs"; +in its client.cfg +and create ns.cfg with the same contents as for the servers. +Then launch the client and enjoy :-) + + +4. The services create/modify the following config or log files: +- unitime.cfg (time_service) + Contains the time reference +- ls.txt (login_service) + Every time a new user (not registered before) logs in, its login + and password are saved into ls.txt +- ls.log (login_service) + Every time someone logs in, its configuration information is + saved into ls.log +- logs.log (very big especially if you have compiled the servers + with NL_DEBUG defined) (log_service) + Contains all debug information sent by the services. + + +5. How to shutdown the services +Here is a sample batch file: + +-- kills -- +kill -INT `ps -edf | grep bin/login_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/time_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/log_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/naming_service | grep -v grep | tr -s " " | cut -d' ' -f2` +-- kills -- + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2 b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2 new file mode 100644 index 00000000..22919b26 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2 @@ -0,0 +1,87 @@ +NEVRAX NeL Network Services Howto +23/01/2001 cado@nevrax.com +$Id: HOWTO,v 1.2 2001/10/04 15:49:12 lecroart Exp $ +---------- + +The NEVRAX NeL Network Services is made up of one unique login service, one or +several shards (aka game servers), and a few utility services. +In this document, we'll assume you want to run your login service +and one shard on the same machine. + +You can't launch more than one shard on a computer. + +Services are compiled in debug mode by default. + +Once you have compiled the servers, you should have the following files +(shown in Unix naming scheme, for Windows add ".exe") in a single +directory (let's call it homedir/bin): +naming_service -> used to find a specific service by its name +time_service -> centralized time reference manager +login_service -> centralized user account manager for all shards +(admin_executor_service -> collects system stats +(agent_service -> agent message router + + +1. In the working directory (e.g. homedir), create the following files +(don't type the lines beginning with "-") + +-- ns.cfg -- +Host = "hostname_of_your_machine_where_naming_service_will_run"; +Port = 50000; +------------ +(This file is used by all services) + +-- ls.txt -- +Shards = { + "hostname_of_your_machine_where_game_service_will_run", "Name of the shard as it will appear on the client" +}; +------------ +(This file is used by login_service) + + +2. Launch the servers. +Here is a sample batch file, where you can find the right ordering : + +-- starts -- +nohup ~/bin/naming_service >/dev/null +nohup ~/bin/time_service >/dev/null +nohup ~/bin/login_service >/dev/null +echo "Active services:" +ps -edf | grep _service | grep -v grep +echo "End services" +------------ + +3. To connect a client to your new shard, set +LSHost = "hostname_of_your_machine_where_login_service_runs"; +in its client.cfg +and create ns.cfg with the same contents as for the servers. +Then launch the client and enjoy :-) + + +4. The services create/modify the following config or log files: +- unitime.cfg (time_service) + Contains the time reference +- ls.txt (login_service) + Every time a new user (not registered before) logs in, its login + and password are saved into ls.txt +- ls.log (login_service) + Every time someone logs in, its configuration information is + saved into ls.log +- log.log (very big especially if you have compiled the servers + with NL_DEBUG defined) + Contains all debug information sent by the services. + + +5. How to shutdown the services +Here is a sample batch file: + +-- kills -- +kill -INT `ps -edf | grep bin/login_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/time_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/log_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/naming_service | grep -v grep | tr -s " " | cut -d' ' -f2` +-- kills -- + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain&only_with_tag=HEAD/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain&only_with_tag=HEAD/index.html new file mode 100644 index 00000000..22919b26 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain&only_with_tag=HEAD/index.html @@ -0,0 +1,87 @@ +NEVRAX NeL Network Services Howto +23/01/2001 cado@nevrax.com +$Id: HOWTO,v 1.2 2001/10/04 15:49:12 lecroart Exp $ +---------- + +The NEVRAX NeL Network Services is made up of one unique login service, one or +several shards (aka game servers), and a few utility services. +In this document, we'll assume you want to run your login service +and one shard on the same machine. + +You can't launch more than one shard on a computer. + +Services are compiled in debug mode by default. + +Once you have compiled the servers, you should have the following files +(shown in Unix naming scheme, for Windows add ".exe") in a single +directory (let's call it homedir/bin): +naming_service -> used to find a specific service by its name +time_service -> centralized time reference manager +login_service -> centralized user account manager for all shards +(admin_executor_service -> collects system stats +(agent_service -> agent message router + + +1. In the working directory (e.g. homedir), create the following files +(don't type the lines beginning with "-") + +-- ns.cfg -- +Host = "hostname_of_your_machine_where_naming_service_will_run"; +Port = 50000; +------------ +(This file is used by all services) + +-- ls.txt -- +Shards = { + "hostname_of_your_machine_where_game_service_will_run", "Name of the shard as it will appear on the client" +}; +------------ +(This file is used by login_service) + + +2. Launch the servers. +Here is a sample batch file, where you can find the right ordering : + +-- starts -- +nohup ~/bin/naming_service >/dev/null +nohup ~/bin/time_service >/dev/null +nohup ~/bin/login_service >/dev/null +echo "Active services:" +ps -edf | grep _service | grep -v grep +echo "End services" +------------ + +3. To connect a client to your new shard, set +LSHost = "hostname_of_your_machine_where_login_service_runs"; +in its client.cfg +and create ns.cfg with the same contents as for the servers. +Then launch the client and enjoy :-) + + +4. The services create/modify the following config or log files: +- unitime.cfg (time_service) + Contains the time reference +- ls.txt (login_service) + Every time a new user (not registered before) logs in, its login + and password are saved into ls.txt +- ls.log (login_service) + Every time someone logs in, its configuration information is + saved into ls.log +- log.log (very big especially if you have compiled the servers + with NL_DEBUG defined) + Contains all debug information sent by the services. + + +5. How to shutdown the services +Here is a sample batch file: + +-- kills -- +kill -INT `ps -edf | grep bin/login_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/time_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/log_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/naming_service | grep -v grep | tr -s " " | cut -d' ' -f2` +-- kills -- + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain&sortby=date&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain&sortby=date&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..22919b26 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain&sortby=date&only_with_tag=MAIN/index.html @@ -0,0 +1,87 @@ +NEVRAX NeL Network Services Howto +23/01/2001 cado@nevrax.com +$Id: HOWTO,v 1.2 2001/10/04 15:49:12 lecroart Exp $ +---------- + +The NEVRAX NeL Network Services is made up of one unique login service, one or +several shards (aka game servers), and a few utility services. +In this document, we'll assume you want to run your login service +and one shard on the same machine. + +You can't launch more than one shard on a computer. + +Services are compiled in debug mode by default. + +Once you have compiled the servers, you should have the following files +(shown in Unix naming scheme, for Windows add ".exe") in a single +directory (let's call it homedir/bin): +naming_service -> used to find a specific service by its name +time_service -> centralized time reference manager +login_service -> centralized user account manager for all shards +(admin_executor_service -> collects system stats +(agent_service -> agent message router + + +1. In the working directory (e.g. homedir), create the following files +(don't type the lines beginning with "-") + +-- ns.cfg -- +Host = "hostname_of_your_machine_where_naming_service_will_run"; +Port = 50000; +------------ +(This file is used by all services) + +-- ls.txt -- +Shards = { + "hostname_of_your_machine_where_game_service_will_run", "Name of the shard as it will appear on the client" +}; +------------ +(This file is used by login_service) + + +2. Launch the servers. +Here is a sample batch file, where you can find the right ordering : + +-- starts -- +nohup ~/bin/naming_service >/dev/null +nohup ~/bin/time_service >/dev/null +nohup ~/bin/login_service >/dev/null +echo "Active services:" +ps -edf | grep _service | grep -v grep +echo "End services" +------------ + +3. To connect a client to your new shard, set +LSHost = "hostname_of_your_machine_where_login_service_runs"; +in its client.cfg +and create ns.cfg with the same contents as for the servers. +Then launch the client and enjoy :-) + + +4. The services create/modify the following config or log files: +- unitime.cfg (time_service) + Contains the time reference +- ls.txt (login_service) + Every time a new user (not registered before) logs in, its login + and password are saved into ls.txt +- ls.log (login_service) + Every time someone logs in, its configuration information is + saved into ls.log +- log.log (very big especially if you have compiled the servers + with NL_DEBUG defined) + Contains all debug information sent by the services. + + +5. How to shutdown the services +Here is a sample batch file: + +-- kills -- +kill -INT `ps -edf | grep bin/login_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/time_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/log_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/naming_service | grep -v grep | tr -s " " | cut -d' ' -f2` +-- kills -- + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..22919b26 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/HOWTO?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,87 @@ +NEVRAX NeL Network Services Howto +23/01/2001 cado@nevrax.com +$Id: HOWTO,v 1.2 2001/10/04 15:49:12 lecroart Exp $ +---------- + +The NEVRAX NeL Network Services is made up of one unique login service, one or +several shards (aka game servers), and a few utility services. +In this document, we'll assume you want to run your login service +and one shard on the same machine. + +You can't launch more than one shard on a computer. + +Services are compiled in debug mode by default. + +Once you have compiled the servers, you should have the following files +(shown in Unix naming scheme, for Windows add ".exe") in a single +directory (let's call it homedir/bin): +naming_service -> used to find a specific service by its name +time_service -> centralized time reference manager +login_service -> centralized user account manager for all shards +(admin_executor_service -> collects system stats +(agent_service -> agent message router + + +1. In the working directory (e.g. homedir), create the following files +(don't type the lines beginning with "-") + +-- ns.cfg -- +Host = "hostname_of_your_machine_where_naming_service_will_run"; +Port = 50000; +------------ +(This file is used by all services) + +-- ls.txt -- +Shards = { + "hostname_of_your_machine_where_game_service_will_run", "Name of the shard as it will appear on the client" +}; +------------ +(This file is used by login_service) + + +2. Launch the servers. +Here is a sample batch file, where you can find the right ordering : + +-- starts -- +nohup ~/bin/naming_service >/dev/null +nohup ~/bin/time_service >/dev/null +nohup ~/bin/login_service >/dev/null +echo "Active services:" +ps -edf | grep _service | grep -v grep +echo "End services" +------------ + +3. To connect a client to your new shard, set +LSHost = "hostname_of_your_machine_where_login_service_runs"; +in its client.cfg +and create ns.cfg with the same contents as for the servers. +Then launch the client and enjoy :-) + + +4. The services create/modify the following config or log files: +- unitime.cfg (time_service) + Contains the time reference +- ls.txt (login_service) + Every time a new user (not registered before) logs in, its login + and password are saved into ls.txt +- ls.log (login_service) + Every time someone logs in, its configuration information is + saved into ls.log +- log.log (very big especially if you have compiled the servers + with NL_DEBUG defined) + Contains all debug information sent by the services. + + +5. How to shutdown the services +Here is a sample batch file: + +-- kills -- +kill -INT `ps -edf | grep bin/login_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/time_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/log_service | grep -v grep | tr -s " " | cut -d' ' -f2` +sleep 1 +kill -INT `ps -edf | grep bin/naming_service | grep -v grep | tr -s " " | cut -d' ' -f2` +-- kills -- + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/INSTALL?rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/nelns/INSTALL?rev=1.1 new file mode 100644 index 00000000..3c5a0b8d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/INSTALL?rev=1.1 @@ -0,0 +1,90 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + The NEVRAX NeL Network Services need the following library : + + - STLPort 4.0 + - NeL + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort libraries. This is done in the + [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + Open the workspace file "services.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/prefix/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/prefix/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the case that you need to rebuild the "configure" script and/or the + "Makefile.in" files, execute the "bootstrap" script in the server + directory : + + % ./bootstrap + + In the server directory do : + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport" option. + This option permit to override the default STL headers. + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?content-type=text/plain&rev=1.1&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?content-type=text/plain&rev=1.1&sortby=author new file mode 100644 index 00000000..8515a7af --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?content-type=text/plain&rev=1.1&sortby=author @@ -0,0 +1,22 @@ +# +# $Id: Makefile.am,v 1.1 2001/04/18 13:54:25 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +SUBDIRS = login_service \ + log_service \ + naming_service \ + time_service \ + agent_service \ + admin_executor_service + + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.2&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.2&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..274cde8d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.2&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,24 @@ +# +# $Id: Makefile.am,v 1.2 2001/05/02 12:36:39 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +SUBDIRS = login_service \ + log_service \ + naming_service \ + time_service \ + agent_service \ + admin_executor_service \ + admin_service \ + welcome_service \ + + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..22329e8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,23 @@ +# +# $Id: Makefile.am,v 1.4 2001/06/18 14:04:46 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +SUBDIRS = login_service \ + log_service \ + naming_service \ + time_service \ + admin_executor_service \ + admin_service \ + welcome_service + + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.3&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.3&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..e5fdd541 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.3&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,24 @@ +# +# $Id: Makefile.am,v 1.3 2001/05/03 13:19:12 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +SUBDIRS = login_service \ + log_service \ + naming_service \ + time_service \ + admin_executor_service \ + admin_service \ + welcome_service \ + agent_service + + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.3&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.3&content-type=text/plain/index.html new file mode 100644 index 00000000..22329e8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.3&content-type=text/plain/index.html @@ -0,0 +1,23 @@ +# +# $Id: Makefile.am,v 1.4 2001/06/18 14:04:46 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +SUBDIRS = login_service \ + log_service \ + naming_service \ + time_service \ + admin_executor_service \ + admin_service \ + welcome_service + + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.4&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.4&content-type=text/plain/index.html new file mode 100644 index 00000000..22329e8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.4&content-type=text/plain/index.html @@ -0,0 +1,23 @@ +# +# $Id: Makefile.am,v 1.4 2001/06/18 14:04:46 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +SUBDIRS = login_service \ + log_service \ + naming_service \ + time_service \ + admin_executor_service \ + admin_service \ + welcome_service + + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.6&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.6&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..1a8753a2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.6&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,21 @@ +# +# $Id: Makefile.am,v 1.6 2002/03/19 17:42:48 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +EXTRA_DIST = acconfig.h services.dsw bootstrap doc + +SUBDIRS = login_service \ + naming_service \ + admin_executor_service \ + admin_service \ + welcome_service + +dist-hook: + find $(distdir) -name CVS -print | xargs rm -fr + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..ba5c4f73 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,38 @@ +# +# $Id: Makefile.am,v 1.7 2002/04/10 07:33:07 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +EXTRA_DIST = acconfig.h services.dsw bootstrap doc + +SUBDIRS = login_service \ + naming_service \ + admin_executor_service \ + admin_service \ + welcome_service + +dist-hook: + find $(distdir) -name CVS -print | xargs rm -fr + +install-data-hook: + mkdir -p ${DESTDIR}${pkglocalstatedir} + mkdir -p ${DESTDIR}${logdir} + mkdir -p ${DESTDIR}${pkgsysconfdir} +# +# Do not override existing config files +# + for service in admin admin_executor login naming welcome ; \ + do \ + test -f ${DESTDIR}${pkgsysconfdir}/$${service}_service.cfg || cp ${srcdir}/$${service}_service/$${service}_service.cfg ${DESTDIR}${pkgsysconfdir} ; \ + done + +uninstall-local: + for service in admin admin_executor login naming welcome ; \ + do \ + rm -f ${DESTDIR}${pkgsysconfdir}/$${service}_service.cfg ; \ + done + +# End of Makefile.am diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.8&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.8&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..8a10601e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/Makefile.am?rev=1.8&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,41 @@ +# +# $Id: Makefile.am,v 1.8 2002/05/03 08:11:14 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +EXTRA_DIST = acconfig.h services.dsw bootstrap doc + +SUBDIRS = login_service \ + naming_service \ + admin_executor_service \ + admin_service \ + welcome_service + +dist-hook: + find $(distdir) -name CVS -print | xargs rm -fr + +install-data-hook: + mkdir -p ${DESTDIR}${pkglocalstatedir} + mkdir -p ${DESTDIR}${logdir} + mkdir -p ${DESTDIR}${pkgsysconfdir} +# +# Do not override existing config files +# + for service in admin admin_executor login naming welcome ; \ + do \ + test -f ${DESTDIR}${pkgsysconfdir}/$${service}_service.cfg || cp ${srcdir}/$${service}_service/$${service}_service.cfg ${DESTDIR}${pkgsysconfdir} ; \ + done + test -f ${DESTDIR}${pkgsysconfdir}/common.cfg || cp ${srcdir}/admin_service/common.cfg ${DESTDIR}${pkgsysconfdir} + + +uninstall-local: + for service in admin admin_executor login naming welcome ; \ + do \ + rm -f ${DESTDIR}${pkgsysconfdir}/$${service}_service.cfg ; \ + done + rm -f ${DESTDIR}${pkgsysconfdir}/common.cfg + +# End of Makefile.am diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/NEWS?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/NEWS?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..496a72d3 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/NEWS?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,6 @@ + +No news, good news ... + +Currently, this file exist to get rid of an Automake error. The content of +that file will be what it should be at the next release. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..ac12141b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,7 @@ +We would like to thanks these peoples : + +Loic Dachary + for the configure srcipt improvement and advices. + +And all users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..ac12141b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,7 @@ +We would like to thanks these peoples : + +Loic Dachary + for the configure srcipt improvement and advices. + +And all users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.2&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.2&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..63f551c8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.2&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,7 @@ +We would like to thanks these peoples : + +Loic Dachary + for the configure script improvement and advices. + +And all users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.2&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.2&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..63f551c8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/THANKS?rev=1.2&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,7 @@ +We would like to thanks these peoples : + +Loic Dachary + for the configure script improvement and advices. + +And all users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acconfig.h?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acconfig.h?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..7ec73dc8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acconfig.h?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,17 @@ + + +/* + * Configuration files directory path + */ +#undef NELNS_CONFIG + +/* + * Log files directory path + */ +#undef NELNS_LOGS + +/* + * Local state files directory path + */ +#undef NELNS_STATE + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..84166845 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.1&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.1 2002/01/07 16:09:52 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +dnl NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..84166845 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.1 2002/01/07 16:09:52 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +dnl NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.10 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.10 new file mode 100644 index 00000000..cd93eb5c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.10 @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.10 2002/03/21 10:54:37 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.10&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.10&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..cd93eb5c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.10&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.10 2002/03/21 10:54:37 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11 new file mode 100644 index 00000000..49d5b40b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11 @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.11 2002/03/26 14:37:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..49d5b40b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.11 2002/03/26 14:37:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11&content-type=text/plain/index.html new file mode 100644 index 00000000..49d5b40b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.11&content-type=text/plain/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.11 2002/03/26 14:37:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.12 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.12 new file mode 100644 index 00000000..9184a376 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.12 @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.12 2002/03/29 10:19:10 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.12&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.12&content-type=text/plain/index.html new file mode 100644 index 00000000..9184a376 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.12&content-type=text/plain/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.12 2002/03/29 10:19:10 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.13&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.13&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..d54d6b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.13&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.13 2002/04/16 12:01:39 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.13&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.13&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..d54d6b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.13&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.13 2002/04/16 12:01:39 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain&only_with_tag=georges_v2/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain&only_with_tag=georges_v2/index.html new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain&only_with_tag=georges_v2/index.html @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain/index.html new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.14&content-type=text/plain/index.html @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2 new file mode 100644 index 00000000..deb5def1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2 @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.2 2002/01/08 10:09:35 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..deb5def1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.2 2002/01/08 10:09:35 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2&content-type=text/plain&sortby=author/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2&content-type=text/plain&sortby=author/index.html new file mode 100644 index 00000000..deb5def1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.2&content-type=text/plain&sortby=author/index.html @@ -0,0 +1,1068 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.2 2002/01/08 10:09:35 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" = "no" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.3 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.3 new file mode 100644 index 00000000..adad0b43 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.3 @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.3 2002/01/10 14:33:19 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.3&content-type=text/plain&sortby=rev/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.3&content-type=text/plain&sortby=rev/index.html new file mode 100644 index 00000000..adad0b43 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.3&content-type=text/plain&sortby=rev/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.3 2002/01/10 14:33:19 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4 new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4 @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4&content-type=text/plain&only_with_tag=MAIN/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4&content-type=text/plain&only_with_tag=MAIN/index.html new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4&content-type=text/plain&only_with_tag=MAIN/index.html @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4&content-type=text/plain/index.html new file mode 100644 index 00000000..61c805d7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.4&content-type=text/plain/index.html @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.4 2002/01/22 14:24:56 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIB variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIB="$OPENAL_LIB -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIB" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIB) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.5 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.5 new file mode 100644 index 00000000..68c8395e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.5 @@ -0,0 +1,1081 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.5 2002/01/28 14:40:26 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIBS="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIBS="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.6 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.6 new file mode 100644 index 00000000..cab27813 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.6 @@ -0,0 +1,1086 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.6 2002/01/28 14:59:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_dir_lnk="$2" +nel_libraries="$3" +nel_test_lib="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + if test $nel_libraries + then + NEL_TEST_LIBS="-L$nel_libraries -l$nel_test_lib" + + else + NEL_TEST_LIBS="$nel_dir_lnk -l$nel_test_lib" + fi + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsound" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +nelconfig_libs_args="" + +if test "$nelnet_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-network" +fi + +if test "$nel3d_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-3d" +fi + +if test "$nelpacs_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-pacs" +fi + +if test "$nelsound_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-sound" +fi + +if test "$nelai_is_mandatory" != "yes" +then + nelconfig_libs_args="$nelconfig_libs_args --without-ai" +fi + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + NEL_LIBS=`nel-config --libs $nelconfig_libs_args` + + nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.7 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.7 new file mode 100644 index 00000000..a7fcf13f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.7 @@ -0,0 +1,1054 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.7 2002/01/29 13:21:42 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.7&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.7&content-type=text/plain/index.html new file mode 100644 index 00000000..a7fcf13f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.7&content-type=text/plain/index.html @@ -0,0 +1,1054 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.7 2002/01/29 13:21:42 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.8&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.8&content-type=text/plain/index.html new file mode 100644 index 00000000..7d877590 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.8&content-type=text/plain/index.html @@ -0,0 +1,1059 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.8 2002/02/18 12:58:38 lecroart Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.9 b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.9 new file mode 100644 index 00000000..999d4822 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.9 @@ -0,0 +1,1046 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.9 2002/03/19 17:42:48 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.9&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.9&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..999d4822 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/acinclude.m4?rev=1.9&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,1046 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.9 2002/03/19 17:42:48 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Attic/sysload.h?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Attic/sysload.h?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..4291e873 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Attic/sysload.h?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,43 @@ +/** \file sysload.h + * + * $Id: sysload.h,v 1.1 2001/04/18 13:54:25 valignat Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NeL Network Services + * NEVRAX NeL Network Services is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * NEVRAX NeL Network Services is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NEVRAX NeL Network Services; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + + +#ifndef NL_SYSLOAD_H +#define NL_SYSLOAD_H + + +class CSysLoad +{ +public: + CSysLoad ( void ); + ~CSysLoad ( void ); + + /// Returns the system load + double getLoadInfo ( void ); +}; + + +#endif // NL_SYSLOAD_H + +// End of sysload.h diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.3&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.3&content-type=text/plain/index.html new file mode 100644 index 00000000..3582ac47 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.3&content-type=text/plain/index.html @@ -0,0 +1,14 @@ +# +# $Id: Makefile.am,v 1.3 2001/05/03 13:19:13 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +bin_PROGRAMS = admin_executor_service + +admin_executor_service_SOURCES = admin_executor_service.cpp + +admin_executor_service_LDADD = -lnelnet -lnelmisc + + +# End of Makefile.am diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.4&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.4&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..8fb69ecf --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.4&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,15 @@ +# +# $Id: Makefile.am,v 1.4 2001/07/27 15:51:10 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +bin_PROGRAMS = admin_executor_service + +admin_executor_service_SOURCES = admin_executor_service.cpp + +admin_executor_service_LDADD = -lnelnet -lnelmisc + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.5&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.5&content-type=text/plain/index.html new file mode 100644 index 00000000..2edf32ad --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.5&content-type=text/plain/index.html @@ -0,0 +1,17 @@ +# +# $Id: Makefile.am,v 1.5 2002/03/19 17:42:48 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +EXTRA_DIST = admin_executor_service.cfg \ + admin_executor_service.dsp + +sbin_PROGRAMS = admin_executor_service + +admin_executor_service_SOURCES = admin_executor_service.cpp + +pkgsysconf_DATA = admin_executor_service.cfg + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.6 b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.6 new file mode 100644 index 00000000..bc71c7a8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.6 @@ -0,0 +1,15 @@ +# +# $Id: Makefile.am,v 1.6 2002/04/10 07:33:07 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +EXTRA_DIST = admin_executor_service.cfg \ + admin_executor_service.dsp + +sbin_PROGRAMS = admin_executor_service + +admin_executor_service_SOURCES = admin_executor_service.cpp + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.6&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.6&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..bc71c7a8 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.6&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,15 @@ +# +# $Id: Makefile.am,v 1.6 2002/04/10 07:33:07 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +EXTRA_DIST = admin_executor_service.cfg \ + admin_executor_service.dsp + +sbin_PROGRAMS = admin_executor_service + +admin_executor_service_SOURCES = admin_executor_service.cpp + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html new file mode 100644 index 00000000..06b4d371 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/Makefile.am?rev=1.7&content-type=text/plain&sortby=date/index.html @@ -0,0 +1,16 @@ +# +# $Id: Makefile.am,v 1.7 2002/06/12 10:21:25 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in + +EXTRA_DIST = admin_executor_service.cfg \ + admin_executor_service.dsp \ + common.cfg + +sbin_PROGRAMS = admin_executor_service + +admin_executor_service_SOURCES = admin_executor_service.cpp + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..d751b593 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,10 @@ + +Services = { "TS", "NS" }; + +NS = { "r:\code\nelns\naming_service", "r:\code\nelns\naming_service\debug\naming_service.exe" }; +TS = { "r:\code\nelns\time_service", "r:\code\nelns\time_service\debug\time_service.exe" }; + +XWinParam = 0; +YWinParam = 250; +WWinParam = 1200; +HWinParam = 300; diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.5&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.5&content-type=text/plain/index.html new file mode 100644 index 00000000..9cae3d77 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.5&content-type=text/plain/index.html @@ -0,0 +1,8 @@ + +Services = { "NS", "LS", "WS" }; + +NS = { "r:\code\nelns\naming_service", "r:\code\nelns\naming_service\debug\naming_service.exe" }; +LS = { "r:\code\nelns\login_service", "r:\code\nelns\login_service\debug\login_service.exe" }; +WS = { "r:\code\nelns\welcome_service", "r:\code\nelns\welcome_service\debug\welcome_service.exe" }; + +WindowStyle = "WIN"; diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.6&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.6&content-type=text/plain/index.html new file mode 100644 index 00000000..198b84c7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.6&content-type=text/plain/index.html @@ -0,0 +1,10 @@ +// link the common configuration file +RootConfigFilename = "common.cfg"; + +Services = { "NS", "LS", "WS" }; + +NS = { "r:\code\nelns\naming_service", "r:\code\nelns\naming_service\debug\naming_service.exe" }; +LS = { "r:\code\nelns\login_service", "r:\code\nelns\login_service\debug\login_service.exe" }; +WS = { "r:\code\nelns\welcome_service", "r:\code\nelns\welcome_service\debug\welcome_service.exe" }; + +WindowStyle = "WIN"; diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.7 b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.7 new file mode 100644 index 00000000..eecb0621 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cfg?rev=1.7 @@ -0,0 +1,8 @@ +// link the common configuration file +RootConfigFilename = "common.cfg"; + +Services = { "NS", "LS", "WS" }; + +NS = { "r:\code\nelns\naming_service", "r:\code\nelns\naming_service\debug\naming_service.exe" }; +LS = { "r:\code\nelns\login_service", "r:\code\nelns\login_service\debug\login_service.exe" }; +WS = { "r:\code\nelns\welcome_service", "r:\code\nelns\welcome_service\debug\welcome_service.exe" }; diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?content-type=text/plain&rev=1.12 b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?content-type=text/plain&rev=1.12 new file mode 100644 index 00000000..3e29a0ba --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?content-type=text/plain&rev=1.12 @@ -0,0 +1,518 @@ +/** \file admin_executor_service.cpp + * Admin Executor Service (AES) + * + * $Id: admin_executor_service.cpp,v 1.12 2001/10/22 10:35:49 lecroart Exp $ + * + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NeL Network Services. + * NEVRAX NeL Network Services is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * NEVRAX NeL Network Services is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NEVRAX NeL Network Services; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#include +#include + +#include "nel/misc/types_nl.h" + +#ifdef NL_OS_WINDOWS +#include +#include +#else +#include +#endif + +#include +#include + +#include "nel/misc/debug.h" +#include "nel/misc/config_file.h" +#include "nel/misc/thread.h" +#include "nel/misc/command.h" + +#include "nel/net/service.h" +#include "nel/net/net_manager.h" + +#ifdef NL_OS_WINDOWS +#define getcwd _getcwd +#define chdir _chdir +#endif + + +using namespace std; +using namespace NLMISC; +using namespace NLNET; + + + +struct CService +{ + CService(TSockId s) : SockId(s), Id(NextId++), Ready(false) { } + + TSockId SockId; /// connection to the service + uint32 Id; /// uint32 to identify the service + string AliasName; /// alias of the service used in the AES and AS to find him (unique per AES) + string ShortName; /// name of the service in short format ("NS" for example) + string LongName; /// name of the service in long format ("naming_service") + bool Ready; /// true if the service is ready + vector Commands; + +private: + static uint32 NextId; +}; + +uint32 CService::NextId = 1; + +list Services; +typedef list::iterator SIT; + +SIT find (TSockId sid) +{ + SIT sit; + for (sit = Services.begin(); sit != Services.end(); sit++) + { + if ((*sit).SockId == sid) break; + } + return sit; +} + +SIT findService (uint32 sid, bool asrt = true) +{ + SIT sit; + for (sit = Services.begin(); sit != Services.end(); sit++) + { + if ((*sit).Id == sid) break; + } + if (asrt) + nlassert (sit != Services.end()); + return sit; +} + + +class CExecuteCommandThread : public IRunnable +{ +public: + string Command, Path; + + CExecuteCommandThread (string command, string path = "") : Command(command), Path(path) { } + + void run () + { + nlinfo ("start executing '%s' in '%s' directory", Command.c_str(), Path.c_str()); + + char oldpath[256]; + if (!Path.empty()) + { + getcwd(oldpath,256); + chdir(Path.c_str()); + } + + system (Command.c_str()); + + if (!Path.empty()) + chdir(oldpath); + + nlinfo ("end executing: %s", Command.c_str()); + } +}; + +class CExecuteServiceThread : public IRunnable +{ +public: + string ServiceAlias, ServiceCommand, ServicePath; + + CExecuteServiceThread (string serviceAlias, string serviceCommand, string servicePath = "") : + ServiceCommand(serviceCommand), ServicePath(servicePath), ServiceAlias(serviceAlias) { } + + void run () + { + nlinfo ("start service '%s' '%s' in '%s' directory", ServiceAlias.c_str(), ServiceCommand.c_str(), ServicePath.c_str()); + + char oldpath[256]; + if (!ServicePath.empty()) + { + getcwd(oldpath,256); + chdir(ServicePath.c_str()); + } + +#ifdef NL_OS_WINDOWS + WinExec (ServiceCommand.c_str(), SW_MINIMIZE/*SW_SHOWNORMAL*/); +#else + system (ServiceCommand.c_str()); +#endif + + if (!ServicePath.empty()) + chdir(oldpath); + + nlinfo ("end service '%s' '%s' in '%s' directory", ServiceAlias.c_str(), ServiceCommand.c_str(), ServicePath.c_str()); + } +}; + +void executeCommand (string command, bool background) +{ + if (command.empty()) return; + +/* + nlinfo ("start executing: %s", command.c_str()); + if (command[command.size()-1] == '&') + { + command.resize(command.size()-2); + + if (spawnlp (_P_NOWAIT, cmd.c_str(), command.c_str(), NULL) == -1) + { + perror ("ca chie grave!!!!: "); + } + } + else + { + if (spawnlp (_P_WAIT, cmd.c_str(), command.c_str(), NULL) == -1) + { + perror ("ca chie grave!!!!: "); + } + } + nlinfo ("end executing: %s", command.c_str()); +*/ + +#ifdef NL_OS_WINDOWS + command += " >NUL:"; +#else + command += " >/dev/null"; +#endif + if (background) + { + IThread *thread = IThread::create (new CExecuteCommandThread (command)); + thread->start (); + } + else + { + CExecuteCommandThread cmdt (command); + cmdt.run (); + } +} + + +/* +// execute without +void executeCommand (string command, TSockId from, CCallbackNetBase &netbase) +{ + if (command.empty()) return; + + #define STDOUT 1 + #define STDERR 2 + int nul, oldstdout, oldstderr; + char *tmpfilename = tmpnam (NULL); + nul = _open(tmpfilename, _O_RDWR | _O_CREAT | _O_TRUNC | _O_TEMPORARY | _O_SHORT_LIVED | _O_EXCL, _S_IREAD | _S_IWRITE); + oldstdout = _dup(STDOUT); + oldstderr = _dup(STDERR); + _dup2(nul, STDOUT); + _dup2(nul, STDERR); + system(command.c_str()); + _dup2(oldstdout, STDOUT); + _dup2(oldstderr, STDERR); + _close(oldstdout); + _close(oldstderr); + + _lseek (nul, 0L, SEEK_SET); + + while (!_eof(nul)) + { + uint8 buffer[10000]; + uint32 nbread = _read (nul, buffer, 10000); + + CMessage msgout (netbase.getSIDA(), "ESCR"); + msgout.serial (nbread); + msgout.serialBuffer (buffer, nbread); + netbase.send (msgout, from); + } + + _close(nul); +*/ +/* + FILE *fp = fopen ("test.txt", "r"); + do + { + char str[1024]; + fgets (str, 1024, fp); + if (feof(fp)) break; + result.push_back (str); + } + while (true); + fclose (fp); +// remove ("test.txt"); +*///} + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// CONNECTION TO THE SERVICES ////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +static void cbServiceIdentification (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + + msgin.serial (s->AliasName, s->ShortName, s->LongName); + msgin.serialCont (s->Commands); + + nlinfo ("*:*:%d is identified to be '%s' '%s' '%s'", s->Id, s->AliasName.c_str(), s->ShortName.c_str(), s->LongName.c_str()); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SID"); + msgout.serial (s->Id, s->AliasName, s->ShortName, s->LongName); + msgout.serialCont (s->Commands); + CNetManager::send ("AESAS", msgout); +} + +static void cbServiceReady (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + + nlinfo ("*:*:%d is ready", s->Id); + s->Ready = true; + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SR"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); +} + +static void cbLog (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + // received an answer for a command, give it to the AS + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "XLOG"); + string log; + msgin.serial (log); + msgout.serial (s->Id); + msgout.serial (log); + CNetManager::send ("AESAS", msgout); +} + +void serviceConnection (const string &serviceName, TSockId from, void *arg) +{ + Services.push_back (CService (from)); + CService *s = &(Services.back()); + from->setAppId ((uint64)(uint)s); + + nlinfo ("*:*:%d connected", s->Id); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SC"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); +} + +void serviceDisconnection (const string &serviceName, TSockId from, void *arg) +{ + CService *s = (CService*) (uint) from->appId(); + + nlinfo ("*:*:%d disconnected", s->Id); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SD"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); + + // remove the service from the list + Services.erase (findService(s->Id)); +} + + +/** Callback Array + */ +TCallbackItem ServicesCallbackArray[] = +{ + { "SID", cbServiceIdentification }, + { "SR", cbServiceReady }, + { "LOG", cbLog }, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// CONNECTION TO THE AS //////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +void errorMessage(string message, TSockId from) +{ + CMessage msgout (CNetManager::getSIDA ("AESAS"), "ERR"); + msgout.serial (message); + CNetManager::send ("AESAS", msgout, from); +} + +static void cbExecuteSystemCommand (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + string command; + + msgin.serial (command); + + IThread *thread = IThread::create (new CExecuteCommandThread (command)); + thread->start (); +} + +static void cbStartService (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + string serviceAlias, command, path; + msgin.serial (serviceAlias); + + nlinfo ("Starting the service alias '%s'", serviceAlias.c_str()); + + try + { + path = IService::ConfigFile.getVar(serviceAlias).asString(0); + command = IService::ConfigFile.getVar(serviceAlias).asString(1); + } + catch(EConfigFile &e) + { + nlwarning ("error in serviceAlias '%s' in config file (%s)", serviceAlias.c_str(), e.what()); + return; + } + + // give the service alias to the service to forward it back when it will connected to the aes. + command += " -n"; + command += serviceAlias.c_str(); + +#ifdef NL_OS_WINDOWS + command += " >NUL:"; +#else + command += " >/dev/null"; +#endif + + IThread *thread = IThread::create (new CExecuteServiceThread (serviceAlias, command, path)); + thread->start (); +} + +static void cbStopService (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + uint32 sid; + + msgin.serial (sid); + + nlinfo ("I have to stop service '%s'"); + + SIT sit = findService (sid, false); + if (sit == Services.end()) + { + // don't find the aes, send an error message + errorMessage ("couldn't stop service, aes didn't find the service", from); + return; + } + + CMessage msgout (CNetManager::getSIDA("AES"), "STOPS"); + CNetManager::send ("AES", msgout, (*sit).SockId); +} + +static void cbExecCommand (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + uint32 sid; + string command; + + msgin.serial (sid); + msgin.serial (command); + + SIT sit = findService (sid, false); + if (sit == Services.end()) + { + // don't find the aes, send an error message + errorMessage ("couldn't stop service, aes didn't find the service", from); + return; + } + + CMessage msgout (CNetManager::getSIDA("AES"), "EXEC_COMMAND"); + msgout.serial (command); + CNetManager::send ("AES", msgout, (*sit).SockId); +} + +void loadAndSendServicesAliasList (CConfigFile::CVar &var); + +void cbASServiceConnection (const string &serviceName, TSockId from, void *arg) +{ + // new admin service, send him all out info about services + + nlinfo ("AS %s is connected", from->asString().c_str()); + + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SL"); + uint32 nbs = (uint32)Services.size(); + msgout.serial (nbs); + for (SIT sit = Services.begin(); sit != Services.end(); sit++) + { + msgout.serial ((*sit).Id, (*sit).AliasName, (*sit).ShortName, (*sit).LongName, (*sit).Ready); + msgout.serialCont ((*sit).Commands); + } + CNetManager::send ("AESAS", msgout, from); + + loadAndSendServicesAliasList (IService::ConfigFile.getVar ("Services")); +} + +TCallbackItem AESASCallbackArray[] = +{ + { "SYS", cbExecuteSystemCommand }, + { "STARTS", cbStartService }, + { "STOPS", cbStopService }, + { "EXEC_COMMAND", cbExecCommand }, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// SERVICE IMPLEMENTATION ////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +void loadAndSendServicesAliasList (CConfigFile::CVar &services) +{ + vector servicesaliaslist; + for (sint i = 0 ; i < services.size (); i++) + { + servicesaliaslist.push_back (services.asString(i)); + } + + CMessage msgout2 (CNetManager::getSIDA ("AESAS"), "SAL"); + msgout2.serialCont (servicesaliaslist); + CNetManager::send ("AESAS", msgout2, 0); +} + + +class CAdminExecutorService : public IService +{ +public: + + /// Init the service, load the universal time. + void init () + { + CNetManager::setConnectionCallback ("AES", serviceConnection, NULL); + CNetManager::setDisconnectionCallback ("AES", serviceDisconnection, NULL); + + // install the server for AS + CNetManager::setConnectionCallback ("AESAS", cbASServiceConnection, NULL); + CNetManager::addServer ("AESAS", 49996); + CNetManager::addCallbackArray ("AESAS", AESASCallbackArray, sizeof(AESASCallbackArray)/sizeof(AESASCallbackArray[0])); + + ConfigFile.setCallback ("Services", loadAndSendServicesAliasList); + loadAndSendServicesAliasList (IService::ConfigFile.getVar ("Services")); + } + + bool update () + { + return true; + } +}; + + +/// Naming Service +NLNET_SERVICE_MAIN (CAdminExecutorService, "AES", "admin_executor_service", 49997, ServicesCallbackArray); diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..8a183cb4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,181 @@ +/** \file admin_executor_service.cpp + * Admin Executor Service (AES) + * + * $Id: admin_executor_service.cpp,v 1.1 2001/04/18 13:54:25 valignat Exp $ + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NeL Network Services + * NEVRAX NeL Network Services is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * NEVRAX NeL Network Services is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NEVRAX NeL Network Services; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#include +#include +#include +#include +#include + +#include "sysload.h" +#include "sysmem.h" +#include "sysswap.h" + +using namespace std; +using namespace NLMISC; +using namespace NLNET; + + +static const char UNKNOW_VALUE[] = ""; + + +CLog StatLog(CLog::LOG_STAT); + + +/// Log Stat data (STT) +void sendData (const char *str, TSenderId from) +{ + StatLog.displayNL( str ); +} + + +/// Log the last minute average load +void cbLoad ( CMessage& message, TSenderId from ) +{ + CSysLoad sysload = CSysLoad(); + double load = sysload.getLoadInfo(); + string answer( "LOAD " ); + + if ( load < 0 ) + { + answer.append( UNKNOW_VALUE ); + } + else + { + char str[6]; + smprintf( str, 6, "%.2f", load ); + answer.append( string(str) ); + } + + sendData( answer.c_str(), from ); +} + + +/// Log the total memory size and the used memory size (in B) +void cbMemory ( CMessage& message, TSenderId from ) +{ + CSysMemory sysmem = CSysMemory(); + sint memUsage = sysmem.getMemoryUsage(); + string answer( "MEM " ); + + if ( memUsage < 0 ) + { + answer.append( UNKNOW_VALUE ); + } + else + { + char str[3]; + smprintf( str, 3, "%d", memUsage ); + answer.append( string(str) ); + } + + sendData( answer.c_str(), from ); +} + + +/// Log the swap size and the used swap space (in kB) +void cbSwap ( CMessage& message, TSenderId from ) +{ + CSysSwap sysswap = CSysSwap(); + sint swapUsage = sysswap.getSwapUsage(); + string answer( "SWAP " ); + + if ( swapUsage < 0 ) + { + answer.append( UNKNOW_VALUE ); + } + else + { + char str[3]; + smprintf( str, 3, "%d", swapUsage ); + answer.append( string(str) ); + } + + sendData( answer.c_str(), from ); +} + + +// Log all the server informations. +void cbSystem ( CMessage& message, TSenderId from ) +{ + cbLoad ( message, from ); + cbMemory ( message, from ); + cbSwap ( message, from ); +} + + +/** + * Callback Array + * Message types: + * LOAD: log Load information + * MEMORY: log Memory information + * SWAP: log Swap information + * SYSTEM: log the Load, Memory, and Swap informations + */ +TCallbackItem CallbackArray[] = +{ + { "LOAD", cbLoad }, + { "MEMORY", cbMemory }, + { "SWAP", cbSwap }, + + { "SYSTEM", cbSystem } +}; + + + +/** Admin Executor Service (AES). + * Log informations (load, memory usage, etc ...) about the server it's + * running on. + * These informations are used by the Admin Service (AS) and the Naming + * Service (NS) to watch the differents servers of the shard. + */ +class CAdminExecutorService : public NLNET::IService +{ +public: + + /// Initializes the service + void init () + { + // Connect to the Log Service + StatLog.addDisplayer( new NLMISC::CStdDisplayer() ); + + NLNET::CNetDisplayer *nd = new NLNET::CNetDisplayer; + + if ( nd->connected() ) + { + StatLog.addDisplayer( nd ); + } + else + { + nlerror( "Coudn't connect to the Log Service." ); + } + } + +}; + + +NLNET_SERVICE_MAIN( CAdminExecutorService, "AES", 50009 ); + +// End of admin_executor_service.cpp diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.10&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.10&content-type=text/plain/index.html new file mode 100644 index 00000000..d6ad849d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.10&content-type=text/plain/index.html @@ -0,0 +1,505 @@ +/** \file admin_executor_service.cpp + * Admin Executor Service (AES) + * + * $Id: admin_executor_service.cpp,v 1.10 2001/06/27 08:35:13 lecroart Exp $ + * + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NeL Network Services. + * NEVRAX NeL Network Services is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * NEVRAX NeL Network Services is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NEVRAX NeL Network Services; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#include +#include + +#include "nel/misc/types_nl.h" + +#ifdef NL_OS_WINDOWS +#include +#else +#include +#endif + +#include +#include + +#include "nel/misc/debug.h" +#include "nel/misc/config_file.h" +#include "nel/misc/thread.h" +#include "nel/misc/command.h" + +#include "nel/net/service.h" +#include "nel/net/net_manager.h" + +#ifdef NL_OS_WINDOWS +#define getcwd _getcwd +#define chdir _chdir +#endif + + +using namespace std; +using namespace NLMISC; +using namespace NLNET; + + + +struct CService +{ + CService(TSockId s) : SockId(s), Id(NextId++), Ready(false) { } + + TSockId SockId; /// connection to the service + uint32 Id; /// uint32 to identify the service + string AliasName; /// alias of the service used in the AES and AS to find him (unique per AES) + string ShortName; /// name of the service in short format ("NS" for example) + string LongName; /// name of the service in long format ("naming_service") + bool Ready; /// true if the service is ready + vector Commands; + +private: + static uint32 NextId; +}; + +uint32 CService::NextId = 1; + +list Services; +typedef list::iterator SIT; + +SIT find (TSockId sid) +{ + SIT sit; + for (sit = Services.begin(); sit != Services.end(); sit++) + { + if ((*sit).SockId == sid) break; + } + return sit; +} + +SIT findService (uint32 sid, bool asrt = true) +{ + SIT sit; + for (sit = Services.begin(); sit != Services.end(); sit++) + { + if ((*sit).Id == sid) break; + } + if (asrt) + nlassert (sit != Services.end()); + return sit; +} + + +class CExecuteCommandThread : public IRunnable +{ +public: + string Command, Path; + + CExecuteCommandThread (string command, string path = "") : Command(command), Path(path) { } + + void run () + { + nlinfo ("start executing '%s' in '%s' directory", Command.c_str(), Path.c_str()); + + char oldpath[256]; + if (!Path.empty()) + { + getcwd(oldpath,256); + chdir(Path.c_str()); + } + + system (Command.c_str()); + + if (!Path.empty()) + chdir(oldpath); + + nlinfo ("end executing: %s", Command.c_str()); + } +}; + +class CExecuteServiceThread : public IRunnable +{ +public: + string ServiceAlias, ServiceCommand, ServicePath; + + CExecuteServiceThread (string serviceAlias, string serviceCommand, string servicePath = "") : + ServiceCommand(serviceCommand), ServicePath(servicePath), ServiceAlias(serviceAlias) { } + + void run () + { + nlinfo ("start service '%s' '%s' in '%s' directory", ServiceAlias.c_str(), ServiceCommand.c_str(), ServicePath.c_str()); + + char oldpath[256]; + if (!ServicePath.empty()) + { + getcwd(oldpath,256); + chdir(ServicePath.c_str()); + } + + system (ServiceCommand.c_str()); + + if (!ServicePath.empty()) + chdir(oldpath); + + nlinfo ("end service '%s' '%s' in '%s' directory", ServiceAlias.c_str(), ServiceCommand.c_str(), ServicePath.c_str()); + } +}; + +void executeCommand (string command, bool background) +{ + if (command.empty()) return; + +/* + nlinfo ("start executing: %s", command.c_str()); + if (command[command.size()-1] == '&') + { + command.resize(command.size()-2); + + if (spawnlp (_P_NOWAIT, cmd.c_str(), command.c_str(), NULL) == -1) + { + perror ("ca chie grave!!!!: "); + } + } + else + { + if (spawnlp (_P_WAIT, cmd.c_str(), command.c_str(), NULL) == -1) + { + perror ("ca chie grave!!!!: "); + } + } + nlinfo ("end executing: %s", command.c_str()); +*/ + + command += " >NUL:"; + if (background) + { + IThread *thread = IThread::create (new CExecuteCommandThread (command)); + thread->start (); + } + else + { + CExecuteCommandThread cmdt (command); + cmdt.run (); + } +} + + +/* +// execute without +void executeCommand (string command, TSockId from, CCallbackNetBase &netbase) +{ + if (command.empty()) return; + + #define STDOUT 1 + #define STDERR 2 + int nul, oldstdout, oldstderr; + char *tmpfilename = tmpnam (NULL); + nul = _open(tmpfilename, _O_RDWR | _O_CREAT | _O_TRUNC | _O_TEMPORARY | _O_SHORT_LIVED | _O_EXCL, _S_IREAD | _S_IWRITE); + oldstdout = _dup(STDOUT); + oldstderr = _dup(STDERR); + _dup2(nul, STDOUT); + _dup2(nul, STDERR); + system(command.c_str()); + _dup2(oldstdout, STDOUT); + _dup2(oldstderr, STDERR); + _close(oldstdout); + _close(oldstderr); + + _lseek (nul, 0L, SEEK_SET); + + while (!_eof(nul)) + { + uint8 buffer[10000]; + uint32 nbread = _read (nul, buffer, 10000); + + CMessage msgout (netbase.getSIDA(), "ESCR"); + msgout.serial (nbread); + msgout.serialBuffer (buffer, nbread); + netbase.send (msgout, from); + } + + _close(nul); +*/ +/* + FILE *fp = fopen ("test.txt", "r"); + do + { + char str[1024]; + fgets (str, 1024, fp); + if (feof(fp)) break; + result.push_back (str); + } + while (true); + fclose (fp); +// remove ("test.txt"); +*///} + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// CONNECTION TO THE SERVICES ////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +static void cbServiceIdentification (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + + msgin.serial (s->AliasName, s->ShortName, s->LongName); + msgin.serialCont (s->Commands); + + nlinfo ("*:*:%d is identified to be '%s' '%s' '%s'", s->Id, s->AliasName.c_str(), s->ShortName.c_str(), s->LongName.c_str()); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SID"); + msgout.serial (s->Id, s->AliasName, s->ShortName, s->LongName); + msgout.serialCont (s->Commands); + CNetManager::send ("AESAS", msgout); +} + +static void cbServiceReady (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + + nlinfo ("*:*:%d is ready", s->Id); + s->Ready = true; + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SR"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); +} + +static void cbLog (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + // received an answer for a command, give it to the AS + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "XLOG"); + string log; + msgin.serial (log); + msgout.serial (s->Id); + msgout.serial (log); + CNetManager::send ("AESAS", msgout); +} + +void serviceConnection (const string &serviceName, TSockId from, void *arg) +{ + Services.push_back (CService (from)); + CService *s = &(Services.back()); + from->setAppId ((uint64)(uint)s); + + nlinfo ("*:*:%d connected", s->Id); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SC"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); +} + +void serviceDisconnection (const string &serviceName, TSockId from, void *arg) +{ + CService *s = (CService*) (uint) from->appId(); + + nlinfo ("*:*:%d disconnected", s->Id); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SD"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); + + // remove the service from the list + Services.erase (findService(s->Id)); +} + + +/** Callback Array + */ +TCallbackItem ServicesCallbackArray[] = +{ + { "SID", cbServiceIdentification }, + { "SR", cbServiceReady }, + { "LOG", cbLog }, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// CONNECTION TO THE AS //////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +void errorMessage(string message, TSockId from) +{ + CMessage msgout (CNetManager::getSIDA ("AESAS"), "ERR"); + msgout.serial (message); + CNetManager::send ("AESAS", msgout, from); +} + +static void cbExecuteSystemCommand (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + string command; + + msgin.serial (command); + + IThread *thread = IThread::create (new CExecuteCommandThread (command)); + thread->start (); +} + +static void cbStartService (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + string serviceAlias, command, path; + msgin.serial (serviceAlias); + + nlinfo ("Starting the service alias '%s'", serviceAlias.c_str()); + + try + { + path = IService::ConfigFile.getVar(serviceAlias).asString(0); + command = IService::ConfigFile.getVar(serviceAlias).asString(1); + } + catch(EConfigFile &e) + { + nlwarning ("error in serviceAlias '%s' in config file (%s)", serviceAlias.c_str(), e.what()); + return; + } + + // give the service alias to the service to forward it back when it will connected to the aes. + command += " -n"; + command += serviceAlias.c_str(); + + command += " >NUL:"; + + IThread *thread = IThread::create (new CExecuteServiceThread (serviceAlias, command, path)); + thread->start (); +} + +static void cbStopService (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + uint32 sid; + + msgin.serial (sid); + + nlinfo ("I have to stop service '%s'"); + + SIT sit = findService (sid, false); + if (sit == Services.end()) + { + // don't find the aes, send an error message + errorMessage ("couldn't stop service, aes didn't find the service", from); + return; + } + + CMessage msgout (CNetManager::getSIDA("AES"), "STOPS"); + CNetManager::send ("AES", msgout, (*sit).SockId); +} + +static void cbExecCommand (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + uint32 sid; + string command; + + msgin.serial (sid); + msgin.serial (command); + + SIT sit = findService (sid, false); + if (sit == Services.end()) + { + // don't find the aes, send an error message + errorMessage ("couldn't stop service, aes didn't find the service", from); + return; + } + + CMessage msgout (CNetManager::getSIDA("AES"), "EXEC_COMMAND"); + msgout.serial (command); + CNetManager::send ("AES", msgout, (*sit).SockId); +} + +void loadAndSendServicesAliasList (CConfigFile::CVar &var); + +void cbASServiceConnection (const string &serviceName, TSockId from, void *arg) +{ + // new admin service, send him all out info about services + + nlinfo ("AS %s is connected", from->asString().c_str()); + + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SL"); + uint32 nbs = (uint32)Services.size(); + msgout.serial (nbs); + for (SIT sit = Services.begin(); sit != Services.end(); sit++) + { + msgout.serial ((*sit).Id, (*sit).AliasName, (*sit).ShortName, (*sit).LongName, (*sit).Ready); + msgout.serialCont ((*sit).Commands); + } + CNetManager::send ("AESAS", msgout, from); + + loadAndSendServicesAliasList (IService::ConfigFile.getVar ("Services")); +} + +TCallbackItem AESASCallbackArray[] = +{ + { "SYS", cbExecuteSystemCommand }, + { "STARTS", cbStartService }, + { "STOPS", cbStopService }, + { "EXEC_COMMAND", cbExecCommand }, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// SERVICE IMPLEMENTATION ////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +void loadAndSendServicesAliasList (CConfigFile::CVar &services) +{ + vector servicesaliaslist; + for (sint i = 0 ; i < services.size (); i++) + { + servicesaliaslist.push_back (services.asString(i)); + } + + CMessage msgout2 (CNetManager::getSIDA ("AESAS"), "SAL"); + msgout2.serialCont (servicesaliaslist); + CNetManager::send ("AESAS", msgout2, 0); +} + + +class CAdminExecutorService : public IService +{ +public: + + /// Init the service, load the universal time. + void init () + { + CNetManager::setConnectionCallback ("AES", serviceConnection, NULL); + CNetManager::setDisconnectionCallback ("AES", serviceDisconnection, NULL); + + // install the server for AS + CNetManager::setConnectionCallback ("AESAS", cbASServiceConnection, NULL); + CNetManager::addServer ("AESAS", 49996); + CNetManager::addCallbackArray ("AESAS", AESASCallbackArray, sizeof(AESASCallbackArray)/sizeof(AESASCallbackArray[0])); + + ConfigFile.setCallback ("Services", loadAndSendServicesAliasList); + loadAndSendServicesAliasList (IService::ConfigFile.getVar ("Services")); + } + + bool update () + { + return true; + } +}; + + +/// Naming Service +NLNET_SERVICE_MAIN (CAdminExecutorService, "AES", "admin_executor_service", 49997, ServicesCallbackArray); diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.13&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.13&content-type=text/plain/index.html new file mode 100644 index 00000000..6d314728 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.13&content-type=text/plain/index.html @@ -0,0 +1,530 @@ +/** \file admin_executor_service.cpp + * Admin Executor Service (AES) + * + * $Id: admin_executor_service.cpp,v 1.13 2002/03/19 17:42:48 valignat Exp $ + * + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NeL Network Services. + * NEVRAX NeL Network Services is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * NEVRAX NeL Network Services is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NEVRAX NeL Network Services; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif // HAVE_CONFIG_H + +#ifndef NELNS_CONFIG +#define NELNS_CONFIG "" +#endif // NELNS_CONFIG + +#ifndef NELNS_LOGS +#define NELNS_LOGS "" +#endif // NELNS_LOGS + +#include +#include + +#include "nel/misc/types_nl.h" + +#ifdef NL_OS_WINDOWS +#include +#include +#else +#include +#endif + +#include +#include + +#include "nel/misc/debug.h" +#include "nel/misc/config_file.h" +#include "nel/misc/thread.h" +#include "nel/misc/command.h" + +#include "nel/net/service.h" +#include "nel/net/net_manager.h" + +#ifdef NL_OS_WINDOWS +#define getcwd _getcwd +#define chdir _chdir +#endif + + +using namespace std; +using namespace NLMISC; +using namespace NLNET; + + + +struct CService +{ + CService(TSockId s) : SockId(s), Id(NextId++), Ready(false) { } + + TSockId SockId; /// connection to the service + uint32 Id; /// uint32 to identify the service + string AliasName; /// alias of the service used in the AES and AS to find him (unique per AES) + string ShortName; /// name of the service in short format ("NS" for example) + string LongName; /// name of the service in long format ("naming_service") + bool Ready; /// true if the service is ready + vector Commands; + +private: + static uint32 NextId; +}; + +uint32 CService::NextId = 1; + +list Services; +typedef list::iterator SIT; + +SIT find (TSockId sid) +{ + SIT sit; + for (sit = Services.begin(); sit != Services.end(); sit++) + { + if ((*sit).SockId == sid) break; + } + return sit; +} + +SIT findService (uint32 sid, bool asrt = true) +{ + SIT sit; + for (sit = Services.begin(); sit != Services.end(); sit++) + { + if ((*sit).Id == sid) break; + } + if (asrt) + nlassert (sit != Services.end()); + return sit; +} + + +class CExecuteCommandThread : public IRunnable +{ +public: + string Command, Path; + + CExecuteCommandThread (string command, string path = "") : Command(command), Path(path) { } + + void run () + { + nlinfo ("start executing '%s' in '%s' directory", Command.c_str(), Path.c_str()); + + char oldpath[256]; + if (!Path.empty()) + { + getcwd(oldpath,256); + chdir(Path.c_str()); + } + + system (Command.c_str()); + + if (!Path.empty()) + chdir(oldpath); + + nlinfo ("end executing: %s", Command.c_str()); + } +}; + +class CExecuteServiceThread : public IRunnable +{ +public: + string ServiceAlias, ServiceCommand, ServicePath; + + CExecuteServiceThread (string serviceAlias, string serviceCommand, string servicePath = "") : + ServiceCommand(serviceCommand), ServicePath(servicePath), ServiceAlias(serviceAlias) { } + + void run () + { + nlinfo ("start service '%s' '%s' in '%s' directory", ServiceAlias.c_str(), ServiceCommand.c_str(), ServicePath.c_str()); + + char oldpath[256]; + if (!ServicePath.empty()) + { + getcwd(oldpath,256); + chdir(ServicePath.c_str()); + } + +#ifdef NL_OS_WINDOWS + WinExec (ServiceCommand.c_str(), SW_MINIMIZE/*SW_SHOWNORMAL*/); +#else + system (ServiceCommand.c_str()); +#endif + + if (!ServicePath.empty()) + chdir(oldpath); + + nlinfo ("end service '%s' '%s' in '%s' directory", ServiceAlias.c_str(), ServiceCommand.c_str(), ServicePath.c_str()); + } +}; + +void executeCommand (string command, bool background) +{ + if (command.empty()) return; + +/* + nlinfo ("start executing: %s", command.c_str()); + if (command[command.size()-1] == '&') + { + command.resize(command.size()-2); + + if (spawnlp (_P_NOWAIT, cmd.c_str(), command.c_str(), NULL) == -1) + { + perror ("ca chie grave!!!!: "); + } + } + else + { + if (spawnlp (_P_WAIT, cmd.c_str(), command.c_str(), NULL) == -1) + { + perror ("ca chie grave!!!!: "); + } + } + nlinfo ("end executing: %s", command.c_str()); +*/ + +#ifdef NL_OS_WINDOWS + command += " >NUL:"; +#else + command += " >/dev/null"; +#endif + if (background) + { + IThread *thread = IThread::create (new CExecuteCommandThread (command)); + thread->start (); + } + else + { + CExecuteCommandThread cmdt (command); + cmdt.run (); + } +} + + +/* +// execute without +void executeCommand (string command, TSockId from, CCallbackNetBase &netbase) +{ + if (command.empty()) return; + + #define STDOUT 1 + #define STDERR 2 + int nul, oldstdout, oldstderr; + char *tmpfilename = tmpnam (NULL); + nul = _open(tmpfilename, _O_RDWR | _O_CREAT | _O_TRUNC | _O_TEMPORARY | _O_SHORT_LIVED | _O_EXCL, _S_IREAD | _S_IWRITE); + oldstdout = _dup(STDOUT); + oldstderr = _dup(STDERR); + _dup2(nul, STDOUT); + _dup2(nul, STDERR); + system(command.c_str()); + _dup2(oldstdout, STDOUT); + _dup2(oldstderr, STDERR); + _close(oldstdout); + _close(oldstderr); + + _lseek (nul, 0L, SEEK_SET); + + while (!_eof(nul)) + { + uint8 buffer[10000]; + uint32 nbread = _read (nul, buffer, 10000); + + CMessage msgout (netbase.getSIDA(), "ESCR"); + msgout.serial (nbread); + msgout.serialBuffer (buffer, nbread); + netbase.send (msgout, from); + } + + _close(nul); +*/ +/* + FILE *fp = fopen ("test.txt", "r"); + do + { + char str[1024]; + fgets (str, 1024, fp); + if (feof(fp)) break; + result.push_back (str); + } + while (true); + fclose (fp); +// remove ("test.txt"); +*///} + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// CONNECTION TO THE SERVICES ////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +static void cbServiceIdentification (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + + msgin.serial (s->AliasName, s->ShortName, s->LongName); + msgin.serialCont (s->Commands); + + nlinfo ("*:*:%d is identified to be '%s' '%s' '%s'", s->Id, s->AliasName.c_str(), s->ShortName.c_str(), s->LongName.c_str()); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SID"); + msgout.serial (s->Id, s->AliasName, s->ShortName, s->LongName); + msgout.serialCont (s->Commands); + CNetManager::send ("AESAS", msgout); +} + +static void cbServiceReady (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + + nlinfo ("*:*:%d is ready", s->Id); + s->Ready = true; + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SR"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); +} + +static void cbLog (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + // received an answer for a command, give it to the AS + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "XLOG"); + string log; + msgin.serial (log); + msgout.serial (s->Id); + msgout.serial (log); + CNetManager::send ("AESAS", msgout); +} + +void serviceConnection (const string &serviceName, TSockId from, void *arg) +{ + Services.push_back (CService (from)); + CService *s = &(Services.back()); + from->setAppId ((uint64)(uint)s); + + nlinfo ("*:*:%d connected", s->Id); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SC"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); +} + +void serviceDisconnection (const string &serviceName, TSockId from, void *arg) +{ + CService *s = (CService*) (uint) from->appId(); + + nlinfo ("*:*:%d disconnected", s->Id); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SD"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); + + // remove the service from the list + Services.erase (findService(s->Id)); +} + + +/** Callback Array + */ +TCallbackItem ServicesCallbackArray[] = +{ + { "SID", cbServiceIdentification }, + { "SR", cbServiceReady }, + { "LOG", cbLog }, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// CONNECTION TO THE AS //////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +void errorMessage(string message, TSockId from) +{ + CMessage msgout (CNetManager::getSIDA ("AESAS"), "ERR"); + msgout.serial (message); + CNetManager::send ("AESAS", msgout, from); +} + +static void cbExecuteSystemCommand (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + string command; + + msgin.serial (command); + + IThread *thread = IThread::create (new CExecuteCommandThread (command)); + thread->start (); +} + +static void cbStartService (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + string serviceAlias, command, path; + msgin.serial (serviceAlias); + + nlinfo ("Starting the service alias '%s'", serviceAlias.c_str()); + + try + { + path = IService::ConfigFile.getVar(serviceAlias).asString(0); + command = IService::ConfigFile.getVar(serviceAlias).asString(1); + } + catch(EConfigFile &e) + { + nlwarning ("error in serviceAlias '%s' in config file (%s)", serviceAlias.c_str(), e.what()); + return; + } + + // give the service alias to the service to forward it back when it will connected to the aes. + command += " -n"; + command += serviceAlias.c_str(); + +#ifdef NL_OS_WINDOWS + command += " >NUL:"; +#else + command += " >/dev/null"; +#endif + + IThread *thread = IThread::create (new CExecuteServiceThread (serviceAlias, command, path)); + thread->start (); +} + +static void cbStopService (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + uint32 sid; + + msgin.serial (sid); + + nlinfo ("I have to stop service '%s'"); + + SIT sit = findService (sid, false); + if (sit == Services.end()) + { + // don't find the aes, send an error message + errorMessage ("couldn't stop service, aes didn't find the service", from); + return; + } + + CMessage msgout (CNetManager::getSIDA("AES"), "STOPS"); + CNetManager::send ("AES", msgout, (*sit).SockId); +} + +static void cbExecCommand (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + uint32 sid; + string command; + + msgin.serial (sid); + msgin.serial (command); + + SIT sit = findService (sid, false); + if (sit == Services.end()) + { + // don't find the aes, send an error message + errorMessage ("couldn't stop service, aes didn't find the service", from); + return; + } + + CMessage msgout (CNetManager::getSIDA("AES"), "EXEC_COMMAND"); + msgout.serial (command); + CNetManager::send ("AES", msgout, (*sit).SockId); +} + +void loadAndSendServicesAliasList (CConfigFile::CVar &var); + +void cbASServiceConnection (const string &serviceName, TSockId from, void *arg) +{ + // new admin service, send him all out info about services + + nlinfo ("AS %s is connected", from->asString().c_str()); + + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SL"); + uint32 nbs = (uint32)Services.size(); + msgout.serial (nbs); + for (SIT sit = Services.begin(); sit != Services.end(); sit++) + { + msgout.serial ((*sit).Id, (*sit).AliasName, (*sit).ShortName, (*sit).LongName, (*sit).Ready); + msgout.serialCont ((*sit).Commands); + } + CNetManager::send ("AESAS", msgout, from); + + loadAndSendServicesAliasList (IService::ConfigFile.getVar ("Services")); +} + +TCallbackItem AESASCallbackArray[] = +{ + { "SYS", cbExecuteSystemCommand }, + { "STARTS", cbStartService }, + { "STOPS", cbStopService }, + { "EXEC_COMMAND", cbExecCommand }, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// SERVICE IMPLEMENTATION ////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +void loadAndSendServicesAliasList (CConfigFile::CVar &services) +{ + vector servicesaliaslist; + for (sint i = 0 ; i < services.size (); i++) + { + servicesaliaslist.push_back (services.asString(i)); + } + + CMessage msgout2 (CNetManager::getSIDA ("AESAS"), "SAL"); + msgout2.serialCont (servicesaliaslist); + CNetManager::send ("AESAS", msgout2, 0); +} + + +class CAdminExecutorService : public IService +{ +public: + + /// Init the service, load the universal time. + void init () + { + CNetManager::setConnectionCallback ("AES", serviceConnection, NULL); + CNetManager::setDisconnectionCallback ("AES", serviceDisconnection, NULL); + + // install the server for AS + CNetManager::setConnectionCallback ("AESAS", cbASServiceConnection, NULL); + CNetManager::addServer ("AESAS", 49996); + CNetManager::addCallbackArray ("AESAS", AESASCallbackArray, sizeof(AESASCallbackArray)/sizeof(AESASCallbackArray[0])); + + ConfigFile.setCallback ("Services", loadAndSendServicesAliasList); + loadAndSendServicesAliasList (IService::ConfigFile.getVar ("Services")); + } + + bool update () + { + return true; + } +}; + + +/// Naming Service +NLNET_SERVICE_MAIN (CAdminExecutorService, "AES", "admin_executor_service", 49997, ServicesCallbackArray, NELNS_CONFIG, NELNS_LOGS); diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.14&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.14&content-type=text/plain/index.html new file mode 100644 index 00000000..12ee8936 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/admin_executor_service/admin_executor_service.cpp?rev=1.14&content-type=text/plain/index.html @@ -0,0 +1,518 @@ +/** \file admin_executor_service.cpp + * Admin Executor Service (AES) + * + * $Id: admin_executor_service.cpp,v 1.14 2002/03/25 09:27:34 lecroart Exp $ + * + */ + +/* Copyright, 2000 Nevrax Ltd. + * + * This file is part of NEVRAX NeL Network Services. + * NEVRAX NeL Network Services is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * NEVRAX NeL Network Services is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with NEVRAX NeL Network Services; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif // HAVE_CONFIG_H + +#ifndef NELNS_CONFIG +#define NELNS_CONFIG "" +#endif // NELNS_CONFIG + +#ifndef NELNS_LOGS +#define NELNS_LOGS "" +#endif // NELNS_LOGS + +#include "nel/misc/types_nl.h" + +#include +#include + +#ifdef NL_OS_WINDOWS +#include +#include +#else +#include +#endif + +#include +#include + +#include "nel/misc/debug.h" +#include "nel/misc/config_file.h" +#include "nel/misc/thread.h" +#include "nel/misc/command.h" + +#include "nel/net/service.h" +#include "nel/net/net_manager.h" + +/*#ifdef NL_OS_WINDOWS +#define getcwd _getcwd +#define chdir _chdir +#endif +*/ + +using namespace std; +using namespace NLMISC; +using namespace NLNET; + + + +struct CService +{ + CService(TSockId s) : SockId(s), Id(NextId++), Ready(false) { } + + TSockId SockId; /// connection to the service + uint32 Id; /// uint32 to identify the service + string AliasName; /// alias of the service used in the AES and AS to find him (unique per AES) + string ShortName; /// name of the service in short format ("NS" for example) + string LongName; /// name of the service in long format ("naming_service") + bool Ready; /// true if the service is ready + vector Commands; + +private: + static uint32 NextId; +}; + +uint32 CService::NextId = 1; + +list Services; +typedef list::iterator SIT; + +SIT find (TSockId sid) +{ + SIT sit; + for (sit = Services.begin(); sit != Services.end(); sit++) + { + if ((*sit).SockId == sid) break; + } + return sit; +} + +SIT findService (uint32 sid, bool asrt = true) +{ + SIT sit; + for (sit = Services.begin(); sit != Services.end(); sit++) + { + if ((*sit).Id == sid) break; + } + if (asrt) + nlassert (sit != Services.end()); + return sit; +} + + +class CExecuteCommandThread : public IRunnable +{ +public: + string Command; + + CExecuteCommandThread (string command) : Command(command) { } + + void run () + { + nlinfo ("start executing '%s'", Command.c_str()); + + system (Command.c_str()); + + nlinfo ("end executing: %s", Command.c_str()); + } +}; + +class CExecuteServiceThread : public IRunnable +{ +public: + string ServiceCommand; + + CExecuteServiceThread (string serviceCommand) : + ServiceCommand(serviceCommand) { } + + void run () + { + nlinfo ("start service '%s'", ServiceCommand.c_str()); + +#ifdef NL_OS_WINDOWS + WinExec (ServiceCommand.c_str(), SW_MINIMIZE/*SW_SHOWNORMAL*/); +#else + system (ServiceCommand.c_str()); +#endif + + nlinfo ("end service '%s'", ServiceCommand.c_str()); + } +}; + +void executeCommand (string command, bool background) +{ + if (command.empty()) return; + +/* + nlinfo ("start executing: %s", command.c_str()); + if (command[command.size()-1] == '&') + { + command.resize(command.size()-2); + + if (spawnlp (_P_NOWAIT, cmd.c_str(), command.c_str(), NULL) == -1) + { + perror ("ca chie grave!!!!: "); + } + } + else + { + if (spawnlp (_P_WAIT, cmd.c_str(), command.c_str(), NULL) == -1) + { + perror ("ca chie grave!!!!: "); + } + } + nlinfo ("end executing: %s", command.c_str()); +*/ + +#ifdef NL_OS_WINDOWS + command += " >NUL:"; +#else + command += " >/dev/null"; +#endif + if (background) + { + IThread *thread = IThread::create (new CExecuteCommandThread (command)); + thread->start (); + } + else + { + CExecuteCommandThread cmdt (command); + cmdt.run (); + } +} + + +/* +// execute without +void executeCommand (string command, TSockId from, CCallbackNetBase &netbase) +{ + if (command.empty()) return; + + #define STDOUT 1 + #define STDERR 2 + int nul, oldstdout, oldstderr; + char *tmpfilename = tmpnam (NULL); + nul = _open(tmpfilename, _O_RDWR | _O_CREAT | _O_TRUNC | _O_TEMPORARY | _O_SHORT_LIVED | _O_EXCL, _S_IREAD | _S_IWRITE); + oldstdout = _dup(STDOUT); + oldstderr = _dup(STDERR); + _dup2(nul, STDOUT); + _dup2(nul, STDERR); + system(command.c_str()); + _dup2(oldstdout, STDOUT); + _dup2(oldstderr, STDERR); + _close(oldstdout); + _close(oldstderr); + + _lseek (nul, 0L, SEEK_SET); + + while (!_eof(nul)) + { + uint8 buffer[10000]; + uint32 nbread = _read (nul, buffer, 10000); + + CMessage msgout (netbase.getSIDA(), "ESCR"); + msgout.serial (nbread); + msgout.serialBuffer (buffer, nbread); + netbase.send (msgout, from); + } + + _close(nul); +*/ +/* + FILE *fp = fopen ("test.txt", "r"); + do + { + char str[1024]; + fgets (str, 1024, fp); + if (feof(fp)) break; + result.push_back (str); + } + while (true); + fclose (fp); +// remove ("test.txt"); +*///} + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// CONNECTION TO THE SERVICES ////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +static void cbServiceIdentification (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + + msgin.serial (s->AliasName, s->ShortName, s->LongName); + msgin.serialCont (s->Commands); + + nlinfo ("*:*:%d is identified to be '%s' '%s' '%s'", s->Id, s->AliasName.c_str(), s->ShortName.c_str(), s->LongName.c_str()); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SID"); + msgout.serial (s->Id, s->AliasName, s->ShortName, s->LongName); + msgout.serialCont (s->Commands); + CNetManager::send ("AESAS", msgout); +} + +static void cbServiceReady (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + + nlinfo ("*:*:%d is ready", s->Id); + s->Ready = true; + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SR"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); +} + +static void cbLog (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + CService *s = (CService*) (uint) from->appId(); + // received an answer for a command, give it to the AS + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "XLOG"); + string log; + msgin.serial (log); + msgout.serial (s->Id); + msgout.serial (log); + CNetManager::send ("AESAS", msgout); +} + +void serviceConnection (const string &serviceName, TSockId from, void *arg) +{ + Services.push_back (CService (from)); + CService *s = &(Services.back()); + from->setAppId ((uint64)(uint)s); + + nlinfo ("*:*:%d connected", s->Id); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SC"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); +} + +void serviceDisconnection (const string &serviceName, TSockId from, void *arg) +{ + CService *s = (CService*) (uint) from->appId(); + + nlinfo ("*:*:%d disconnected", s->Id); + + // broadcast the message to the admin service + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SD"); + msgout.serial (s->Id); + CNetManager::send ("AESAS", msgout); + + // remove the service from the list + Services.erase (findService(s->Id)); +} + + +/** Callback Array + */ +TCallbackItem ServicesCallbackArray[] = +{ + { "SID", cbServiceIdentification }, + { "SR", cbServiceReady }, + { "LOG", cbLog }, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// CONNECTION TO THE AS //////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +void errorMessage(string message, TSockId from) +{ + CMessage msgout (CNetManager::getSIDA ("AESAS"), "ERR"); + msgout.serial (message); + CNetManager::send ("AESAS", msgout, from); +} + +static void cbExecuteSystemCommand (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + string command; + + msgin.serial (command); + + IThread *thread = IThread::create (new CExecuteCommandThread (command)); + thread->start (); +} + +static void cbStartService (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + string serviceAlias, command, path; + msgin.serial (serviceAlias); + + nlinfo ("Starting the service alias '%s'", serviceAlias.c_str()); + + try + { + path = IService::getInstance()->ConfigFile.getVar(serviceAlias).asString(0); + command = IService::getInstance()->ConfigFile.getVar(serviceAlias).asString(1); + } + catch(EConfigFile &e) + { + nlwarning ("error in serviceAlias '%s' in config file (%s)", serviceAlias.c_str(), e.what()); + return; + } + + // give the service alias to the service to forward it back when it will connected to the aes. + command += " -N"; + command += serviceAlias; + + // set the path for the config file + command += " -C"; + command += path; + + // set the path for log + command += " -L"; + command += path; + +#ifdef NL_OS_WINDOWS + command += " >NUL:"; +#else + command += " >/dev/null"; +#endif + + IThread *thread = IThread::create (new CExecuteServiceThread (command)); + thread->start (); +} + +static void cbStopService (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + uint32 sid; + + msgin.serial (sid); + + nlinfo ("I have to stop service '%s'"); + + SIT sit = findService (sid, false); + if (sit == Services.end()) + { + // don't find the aes, send an error message + errorMessage ("couldn't stop service, aes didn't find the service", from); + return; + } + + CMessage msgout (CNetManager::getSIDA("AES"), "STOPS"); + CNetManager::send ("AES", msgout, (*sit).SockId); +} + +static void cbExecCommand (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) +{ + uint32 sid; + string command; + + msgin.serial (sid); + msgin.serial (command); + + SIT sit = findService (sid, false); + if (sit == Services.end()) + { + // don't find the aes, send an error message + errorMessage ("couldn't stop service, aes didn't find the service", from); + return; + } + + CMessage msgout (CNetManager::getSIDA("AES"), "EXEC_COMMAND"); + msgout.serial (command); + CNetManager::send ("AES", msgout, (*sit).SockId); +} + +void loadAndSendServicesAliasList (CConfigFile::CVar &var); + +void cbASServiceConnection (const string &serviceName, TSockId from, void *arg) +{ + // new admin service, send him all out info about services + + nlinfo ("AS %s is connected", from->asString().c_str()); + + CMessage msgout (CNetManager::getSIDA ("AESAS"), "SL"); + uint32 nbs = (uint32)Services.size(); + msgout.serial (nbs); + for (SIT sit = Services.begin(); sit != Services.end(); sit++) + { + msgout.serial ((*sit).Id, (*sit).AliasName, (*sit).ShortName, (*sit).LongName, (*sit).Ready); + msgout.serialCont ((*sit).Commands); + } + CNetManager::send ("AESAS", msgout, from); + + loadAndSendServicesAliasList (IService::getInstance()->ConfigFile.getVar ("Services")); +} + +TCallbackItem AESASCallbackArray[] = +{ + { "SYS", cbExecuteSystemCommand }, + { "STARTS", cbStartService }, + { "STOPS", cbStopService }, + { "EXEC_COMMAND", cbExecCommand }, +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +////////////////// SERVICE IMPLEMENTATION ////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////// + +void loadAndSendServicesAliasList (CConfigFile::CVar &services) +{ + vector servicesaliaslist; + for (sint i = 0 ; i < services.size (); i++) + { + servicesaliaslist.push_back (services.asString(i)); + } + + CMessage msgout2 (CNetManager::getSIDA ("AESAS"), "SAL"); + msgout2.serialCont (servicesaliaslist); + CNetManager::send ("AESAS", msgout2, 0); +} + + +class CAdminExecutorService : public IService +{ +public: + + /// Init the service, load the universal time. + void init () + { + CNetManager::setConnectionCallback ("AES", serviceConnection, NULL); + CNetManager::setDisconnectionCallback ("AES", serviceDisconnection, NULL); + + // install the server for AS + CNetManager::setConnectionCallback ("AESAS", cbASServiceConnection, NULL); + CNetManager::addServer ("AESAS", 49996); + CNetManager::addCallbackArray ("AESAS", AESASCallbackArray, sizeof(AESASCallbackArray)/sizeof(AESASCallbackArray[0])); + + ConfigFile.setCallback ("Services", loadAndSendServicesAliasList); + loadAndSendServicesAliasList (IService::ConfigFile.getVar ("Services")); + } + + bool update () + { + return true; + } +}; + + +/// Naming Service +NLNET_OLD_SERVICE_MAIN (CAdminExecutorService, "AES", "admin_executor_service", 49997, ServicesCallbackArray, NELNS_CONFIG, NELNS_LOGS); diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html new file mode 100644 index 00000000..2cfd6fb4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html @@ -0,0 +1,54 @@ +#include "nel/ai/agent/agent.h" +#include "io_interface.h" +#include +#include + +namespace SRV +{ + extern std::fstream logStream; + extern bool logFileState; + + static char LaseErrorCodeOrdreInterprete[32*1024]; + void IOTrace::Echo(char *str, ...) + { + char temp[32*1024]; + va_list argument; + va_start (argument, str); + + vsprintf(temp, str, argument); + strcpy(LaseErrorCodeOrdreInterprete,temp); + +#ifdef NL_DEBUG + printf("%s",LaseErrorCodeOrdreInterprete); + if(logFileState && logStream.is_open()) + { + logStream << LaseErrorCodeOrdreInterprete; + logStream.flush(); + } +#else + printf("%s",LaseErrorCodeOrdreInterprete); + if(logFileState && logStream.is_open()) + { + logStream << LaseErrorCodeOrdreInterprete; + logStream.flush(); + } +#endif + + } + + const std::string IOTrace::InPut() + { + std::string str; + /*char toto[4096]; + str = gets(toto);*/ + cin >> str; + return str; + } + + const NLAIC::CIdentType &IOTrace::getType() const + { + static const NLAIC::CIdentType idIOWinInterface("IOWinInterface", NLAIC::CSelfClassFactory(*this), + NLAIC::CTypeOfObject(NLAIC::CTypeOfObject::tObject),NLAIC::CTypeOfOperator(0)); + return idIOWinInterface; + } +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/py_object_trans.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/py_object_trans.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html new file mode 100644 index 00000000..92f3b304 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/py_object_trans.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html @@ -0,0 +1,132 @@ +#include "py_object_trans.h" +//#include "ag_compile.h" + + +namespace SRV +{ + static PyObject *commandSell(pyCPyEditWin *self, PyObject *arg) + { + char *txt; + PyObject *argi; + argi = PyTuple_GetItem (arg, 0); + PyArg_Parse(argi,"s",&txt); + txt[strlen(txt)] = 0; + char command[1024*16]; +#ifdef NL_DEBUG + memset(command,0,sizeof(command)); +#endif + int i = 0,j = 0; + + while(txt[i] != 0) + { + if(txt[i] != '\n') + { + command[j] = txt[i]; + j ++; + } + else + { + command[j] = 0; + self->Instance->commandSell(command); + j = 0; + } + i ++; + } + if(j) + { + command[j] = 0; + self->Instance->commandSell(command); + } + return Py_BuildValue("i",false); + } + + static PyObject *coord(pyCPyEditWin *self, PyObject *arg) + { + char *txt; + PyObject *argi; + argi = PyTuple_GetItem (arg, 0); + PyArg_Parse(argi,"s",&txt); + //txt[strlen(txt)] = 0; + char num[1024]; +#ifdef NL_DEBUG + memset(num,0,sizeof(num)); +#endif + int i = 0,j = 0; + int x = -1,y = -1; + while(txt[i] != 0) + { + if(txt[i] == '.') + { + num[j] = 0; + x = atoi(num); + j = 0; + i++; + break; + } + else + { + num[j ++] = txt[i]; + } + i ++; + } + + while(1) + { + if(txt[i] == 0) + { + num[j] = 0; + y = atoi(num); + break; + } + else + { + num[j ++] = txt[i]; + } + i ++; + } + return Py_BuildValue("ii",x,y); + } + + static PyMethodDef V_methods[] = + { + {"commandSell", (PyCFunction) commandSell, 1, NULL}, + {"coord", (PyCFunction) coord, 1, NULL}, + {NULL, NULL} /* sentinel */ + }; + + static PyObject *getAttribDigitalType(pyCPyEditWin *self,char *name) + { + return Py_FindMethod(V_methods, (PyObject *)self, name); + } + + static void dealloc(pyCPyEditWin *self) + { + delete self; + } + + staticforward PyTypeObject V_Type = + { + PyObject_HEAD_INIT(&PyType_Type) + 0, /*ob_size*/ + "Shell", /*tp_name*/ + sizeof(pyCPyEditWin), /*tp_basicsize*/ + 0, /*tp_itemsize*/ + /* methods */ + (destructor)dealloc, /*tp_dealloc*/ + 0, /*tp_print*/ + (getattrfunc)getAttribDigitalType, /*tp_getattr*/ + 0, + /* (setattrfunc)VConnection_setattr,*/ /*tp_setattr*/ + 0, /*tp_compare*/ + 0, /*tp_repr*/ + 0, /*tp_as_number*/ + 0, /*tp_as_sequence*/ + 0, /*tp_as_mapping*/ + 0, /*tp_hash*/ + }; + + pyCPyEditWin *allocPyEditWin(CPyEditWin *classType) + { + return NLAIC::CreatePyObjectInstance(classType,&V_Type); + } +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/server.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/server.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html new file mode 100644 index 00000000..9c27da39 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/server.cpp?rev=1.1&content-type=text/plain&hideattic=0/index.html @@ -0,0 +1,228 @@ +/** \file server.cpp + * + * + * $Id: server.cpp,v 1.1 2001/04/18 13:54:25 valignat Exp $ + */ + +/* Copyright, 2001 Nevrax Ltd. + * + * This file is part of NEVRAX NeL Network Services. + * NEVRAX NeL Network Services is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + + * NEVRAX NeL Network Services is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with NEVRAX NeL Network Services; see the file COPYING. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ +#include +#include "nel/ai/agent/agent.h" +#include "nel/ai/script/codage.h" +#include "nel/ai/script/interpret_object_agent.h" +#include "nel/ai/agent/main_agent_script.h" +#include "nel/ai/script/libcode.h" +#include "nel/misc/thread.h" + +#include "server.h" +const char logFile[] = "compile.log"; +#include "filestream_n.h" +#include "io_interface.h" +#include "ag_compile.h" +#include "init.h" + +namespace NLAISCRIPT +{ +#ifdef NL_DEBUG + extern bool NL_AI_DEBUG_SERVER; +#endif +} + + +namespace SRV +{ + std::fstream logStream; + bool logFileState = false; + SRV::IOTrace Interface; + + TAgentId getId(const NLAIAGENT::CAgentNumber &num) + { + TAgentId i; + i.CreatorSId = num.CreatorId; + i.CurrentSId = num.DynamicId; + i.SerialNumber = num.AgentNumber; + return i; + } + + NLAIAGENT::CAgentNumber getAgentId(TBasicAgentId &num) + { + NLAIAGENT::CAgentNumber i; + i.CreatorId = num.CreatorSId; + i.AgentNumber = num.SerialNumber; + return i; + } + + CApplication::CApplication(const std::vector &args):IManager(&Interface),_Active(true),_Shell(NULL),_Runnable(NULL),_ManagerRun(NULL) + { + Interface.incRef(); + SRV::CPyEditWin::PyServer = NLAIPYSERVER::initPythonLib(&Interface,"./pyscript"); + Interface.incRef(); + SRV::CPyEditWin::inputOutput = &Interface; + Interface.incRef(); + NLAISCRIPT::CCallPrint::inputOutput = &Interface; + if(logFileState) logStream.open(logFile, std::ios_base::in | std::ios_base::out | std::ios_base::binary | std::ios_base::trunc); + //init(); + } + + bool CApplication::isActive() const + { + return _Active; + } + + NLAIAGENT::IRefrence *CApplication::agentIsPresent( TBasicAgentId baid ) const + { + const NLAIAGENT::CAgentNumber &id = getAgentId(baid); + return NLAIAGENT::CLocWordNumRef::getRef(NLAIAGENT::CNumericIndex(id)); + + } + + void CApplication::deliverMsg( NLAIAGENT::IRefrence *ag, NLNET::CMessage& inmsg, TAgentId src_aid ) + { + NLAIC::CIdentTypeAlloc msgFactory; + inmsg.serial( msgFactory ); + NLAIAGENT::IObjectIA *msg = (NLAIAGENT::IObjectIA *) msgFactory.allocClass(); + inmsg.serial( *msg ); +#ifdef NL_DEBUG + NLAISCRIPT::NL_AI_DEBUG_SERVER = true; +#endif + ag->sendMessage(msg); + } + + TAgentId CApplication::getAgentManagerId() const + { + const NLAIAGENT::CNumericIndex &id = ((const NLAIAGENT::IWordNumRef &)*this).getNumIdent(); + return getId(id.getId()); + } + + void CApplication::declareNewManager( const TAgentId& agtid ) + { + NLAIAGENT::CAgentNumber id; + id.CreatorId = agtid.CreatorSId; + id.DynamicId = agtid.CurrentSId; + id.AgentNumber = agtid.SerialNumber; + + std::list::iterator itr = _AgentServerID.begin(); + while(itr != _AgentServerID.end()) + { + if(*(itr ++) == id) return; + } + _AgentServerID.push_back(id); + } + + void CApplication::releaseManager( const TAgentId& agtid ) + { + NLAIAGENT::CAgentNumber id; + id.CreatorId = agtid.CreatorSId; + id.DynamicId = agtid.CurrentSId; + id.AgentNumber = agtid.SerialNumber; + + std::list::iterator itr = _AgentServerID.begin(); + while(itr != _AgentServerID.end()) + { + if(*(itr ++) == id) + { + _AgentServerID.erase(itr); + return; + } + } + } + + void CApplication::correctAgentLocation( TAgentId new_aid ) + { + } + + NLAIAGENT::IObjectIA::CProcessResult CApplication::sendMessage(const NLAIAGENT::CAgentNumber &ref,NLAIAGENT::IObjectIA *m) + { + NLNET::CMessage msg("Ag"); + msg.serial( (NLAIC::CIdentType &)m->getType() ); + msg.serial(*m); + const NLAIAGENT::CNumericIndex &id = ((const NLAIAGENT::IWordNumRef &)*this).getNumIdent(); + CAgentService::sendToAgent(getId(id.getId()),getId(ref),msg); + return NLAIAGENT::IObjectIA::CProcessResult(); + } + + void CApplication::init(NLMISC::CSynchronized &thisSync) + { + initServer(); + + bool i = haveActivity(); + + _Runnable = new SRV::CVoidRun(thisSync, _MessageList); + _ManagerRun = NLMISC::IThread::create(_Runnable); + _Runnable->setThread(_ManagerRun); + _Shell = new CPyEditWin(_MessageList,*_ManagerRun); + _ManagerRun->start(); + + const NLAIAGENT::CNumericIndex &id = ((const NLAIAGENT::IWordNumRef &)*this).getNumIdent(); + char text[1024]; + id.getDebugString(text); + _CodeContext->InputOutput->Echo("service %s is run\n",text); + } + + clock_t start = clock() - 11; + + NLAIAGENT::IObjectIA::CProcessResult CApplication::runActivity() + { + + /*NLNET::CMessage msg("PING"); + CMessageService m("PINGS",new CObjectSerial(msg)); + CMsgTranslater::MsgTranslater->sendMessage((CMessageService *)m.clone());*/ + + /*double time = ((double)(clock() - start))/(double)CLOCKS_PER_SEC; + if(time >= 5) + { + NLAIAGENT::CGroupType g; + NLAIAGENT::CStringType *name = new NLAIAGENT::CStringType(NLAIAGENT::CStringVarName("Mektoube")); + name->incRef(); + g.push(name); + CCreatureHerbivore *x = new CCreatureHerbivore(this); + x->incRef(); + x->connect(); + g.push(x); + addDynamicAgent(&g); + start = clock(); + }*/ + + NLMISC::CSynchronized::CAccessor a(CMsgTranslater::MsgTranslater); + a.value()->run(); + + return NLAIAGENT::IObjectIA::CProcessResult(); + } + + NLAIAGENT::IMessageBase *CApplication::runKill(const NLAIAGENT::IMessageBase &m) + { + _Active = false; + //_ManagerRun->terminate(); + return (NLAIAGENT::IMessageBase *)m.clone(); + } + + void CApplication::leave() + { + _ManagerRun->terminate(); + } + + CApplication::~CApplication() + { + NLAIPYSERVER::endPythonInterface(SRV::CPyEditWin::PyServer); + if(logFileState) logStream.close(); + _Shell->release(); + delete _Runnable; + delete _ManagerRun; + } +} diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.1&sortby=author b/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.1&sortby=author new file mode 100644 index 00000000..666c7d38 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.1&sortby=author @@ -0,0 +1,11 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..da0b43dd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,18 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +# This is to avoid atomake to complain about the fact that there is no +# ChangeLog File at the moment +if test ! -f ChangeLog +then + touch ChangeLog +fi + +aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.2&sortby=date b/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.2&sortby=date new file mode 100644 index 00000000..da0b43dd --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.2&sortby=date @@ -0,0 +1,18 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +# This is to avoid atomake to complain about the fact that there is no +# ChangeLog File at the moment +if test ! -f ChangeLog +then + touch ChangeLog +fi + +aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.3&only_with_tag=MAIN b/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.3&only_with_tag=MAIN new file mode 100644 index 00000000..665f3f13 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/bootstrap?rev=1.3&only_with_tag=MAIN @@ -0,0 +1,23 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +# This is to avoid atomake to complain about the fact that there is no +# ChangeLog or README file at the moment +if test ! -f ChangeLog +then + touch ChangeLog +fi + +if test ! -f README +then + touch README +fi + +aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?content-type=text/plain&rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?content-type=text/plain&rev=1.1 new file mode 100644 index 00000000..a564a022 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?content-type=text/plain&rev=1.1 @@ -0,0 +1,289 @@ +dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.1 2001/04/18 13:54:25 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(log_service/log_service.h) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(netns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X""; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + +dnl Ask user for path to the STLPort library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib)] +) + +if test X"$STLLIB_DIR" != X""; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeLNS (www.stlport.org)]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel= prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + log_service/Makefile \ + naming_service/Makefile \ + time_service/Makefile \ + agent_service/Makefile \ + agent_service/creature/Makefile \ + agent_service/plugin/Makefile \ + admin_executor_service/Makefile \ +) + + +dnl End of configure.in diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?content-type=text/plain&rev=1.14 b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?content-type=text/plain&rev=1.14 new file mode 100644 index 00000000..e3113ed5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?content-type=text/plain&rev=1.14 @@ -0,0 +1,156 @@ +dnl ==================================================================== +dnl Configuration script for NeLNS +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.14 2002/04/15 12:04:30 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" +then + CXX="ccache $CXX" +fi + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +AC_CHECK_LIB(crypt, crypt) + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl NeL + +dnl misc net 3d pacs sound ai georges +AM_PATH_NEL("yes", "yes", "no", "no", "no", "no", "no") + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + +dnl ==================================================================== +dnl nelns configuration and logs file location +dnl ==================================================================== + +test "x$prefix" = xNONE && prefix=$ac_default_prefix + +AC_ARG_WITH(sysconfdir, + [ --with-sysconfdir[=DIR] + use DIR instead of the default sysconfdir/nelns], + [pkgsysconfdir=$withval], + [pkgsysconfdir='${sysconfdir}/nelns']) +AC_SUBST(pkgsysconfdir) + +eval eval NELNS_CONFIG=\"$pkgsysconfdir/\" +AC_DEFINE_UNQUOTED(NELNS_CONFIG, "$NELNS_CONFIG") + +AC_ARG_WITH(localstatedir, + [ --with-localstatedir[=DIR] + use DIR instead of the default localstatedir/game/nelns], + [pkglocalstatedir=$withval], + [pkglocalstatedir=${localstatedir}/game/nelns]) +AC_SUBST(pkglocalstatedir) + +eval eval NELNS_STATE=\"$pkglocalstatedir/\" +AC_DEFINE_UNQUOTED(NELNS_STATE, "$NELNS_STATE") + +AC_ARG_WITH(logdir, + [ --with-logdir[=DIR] + use DIR instead of the default localstatedir/log/nelns], + [logdir=$withval], + [logdir='${localstatedir}/log/nelns']) +AC_SUBST(logdir) + +eval eval NELNS_LOGS=\"$logdir/\" +AC_DEFINE_UNQUOTED(NELNS_LOGS, "$NELNS_LOGS") + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.15&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.15&content-type=text/plain/index.html new file mode 100644 index 00000000..ac14e56e --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.15&content-type=text/plain/index.html @@ -0,0 +1,153 @@ +dnl ==================================================================== +dnl Configuration script for NeLNS +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.15 2002/04/16 12:01:39 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +AC_CHECK_LIB(crypt, crypt) + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl NeL + +dnl misc net 3d pacs sound ai georges +AM_PATH_NEL("yes", "yes", "no", "no", "no", "no", "no") + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + +dnl ==================================================================== +dnl nelns configuration and logs file location +dnl ==================================================================== + +test "x$prefix" = xNONE && prefix=$ac_default_prefix + +AC_ARG_WITH(sysconfdir, + [ --with-sysconfdir[=DIR] + use DIR instead of the default sysconfdir/nelns], + [pkgsysconfdir=$withval], + [pkgsysconfdir='${sysconfdir}/nelns']) +AC_SUBST(pkgsysconfdir) + +eval eval NELNS_CONFIG=\"$pkgsysconfdir/\" +AC_DEFINE_UNQUOTED(NELNS_CONFIG, "$NELNS_CONFIG") + +AC_ARG_WITH(localstatedir, + [ --with-localstatedir[=DIR] + use DIR instead of the default localstatedir/game/nelns], + [pkglocalstatedir=$withval], + [pkglocalstatedir=${localstatedir}/game/nelns]) +AC_SUBST(pkglocalstatedir) + +eval eval NELNS_STATE=\"$pkglocalstatedir/\" +AC_DEFINE_UNQUOTED(NELNS_STATE, "$NELNS_STATE") + +AC_ARG_WITH(logdir, + [ --with-logdir[=DIR] + use DIR instead of the default localstatedir/log/nelns], + [logdir=$withval], + [logdir='${localstatedir}/log/nelns']) +AC_SUBST(logdir) + +eval eval NELNS_LOGS=\"$logdir/\" +AC_DEFINE_UNQUOTED(NELNS_LOGS, "$NELNS_LOGS") + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.4&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.4&content-type=text/plain/index.html new file mode 100644 index 00000000..c0341569 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.4&content-type=text/plain/index.html @@ -0,0 +1,221 @@ +dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.4 2001/08/07 12:41:46 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(log_service/log_service.h) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(netns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X""; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + +dnl Ask user for path to the STLPort library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib)] +) + +if test X"$STLLIB_DIR" != X""; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeLNS (www.stlport.org)]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel= prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + log_service/Makefile \ + naming_service/Makefile \ + time_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.5&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.5&content-type=text/plain/index.html new file mode 100644 index 00000000..9e17feb0 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.5&content-type=text/plain/index.html @@ -0,0 +1,258 @@ +dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.5 2001/08/07 12:58:26 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(log_service/log_service.h) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(netns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/include] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlpo +rt_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="$with_stlport/include" + STLPORT_LIB="$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="$with_stlport_lib" +fi + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel= prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="-I$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="-L$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + log_service/Makefile \ + naming_service/Makefile \ + time_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.6&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.6&content-type=text/plain/index.html new file mode 100644 index 00000000..57546b2d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.6&content-type=text/plain/index.html @@ -0,0 +1,258 @@ +dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.6 2001/08/08 10:23:32 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(log_service/log_service.h) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(netns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install directory. + e.g. /usr/local/stlport] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlpo +rt_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="i-L$with_stlport_lib" +fi + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel= prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + log_service/Makefile \ + naming_service/Makefile \ + time_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.8&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.8&content-type=text/plain/index.html new file mode 100644 index 00000000..1eeee2f2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.8&content-type=text/plain/index.html @@ -0,0 +1,256 @@ +dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.8 2001/10/29 14:00:28 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install directory. + e.g. /usr/local/stlport] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlpo +rt_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel= prefix to the NeL files installation. + e.g. /usr/local], + [ NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.9&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.9&content-type=text/plain/index.html new file mode 100644 index 00000000..86b40350 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.9&content-type=text/plain/index.html @@ -0,0 +1,110 @@ +dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.9 2002/01/07 16:09:52 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ========================================================================== +dnl NeL + +AM_PATH_NEL("yes", "yes", "no", "no", "no", "no") + +CXXFLAGS="$CXXFLAGS ${NEL_CFLAGS}" +LIBS="$LIBS ${NEL_LIBS}" + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..7e36001f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,182 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "admin_executor_service"=.\moves_service\admin_executor_service\admin_executor_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "agent_service"=.\agent_service\agent_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "ia"=..\nel\src\ai.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "log_service"=.\log_service\log_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "login_service"=.\login_service\login_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "moves_service"=.\moves_service\moves_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "naming_service"=.\naming_service\naming_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "time_service"=.\time_service\time_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..a94da8e2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,221 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "admin"=..\nel\tools\net\admin\admin.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_executor_service"=.\admin_executor_service\admin_executor_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_service"=.\admin_service\admin_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "log_service"=.\log_service\log_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "login_service"=.\login_service\login_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "naming_service"=.\naming_service\naming_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=..\nel\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "pacs_service"=.\pacs_service\pacs_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "time_service"=.\time_service\time_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "welcome_service"=.\welcome_service\welcome_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.3&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.3&content-type=text/plain/index.html new file mode 100644 index 00000000..838bf01d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.3&content-type=text/plain/index.html @@ -0,0 +1,200 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "admin_executor_service"=.\admin_executor_service\admin_executor_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_service"=.\admin_service\admin_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "agent_service"=.\agent_service\agent_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "ia"=..\nel\src\ai.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "log_service"=.\log_service\log_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "login_service"=.\login_service\login_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "naming_service"=.\naming_service\naming_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "time_service"=.\time_service\time_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "welcome_service"=.\welcome_service\welcome_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.4&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.4&content-type=text/plain/index.html new file mode 100644 index 00000000..c1d09c3a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.4&content-type=text/plain/index.html @@ -0,0 +1,218 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "admin"=..\nel\tools\net\admin\admin.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_executor_service"=.\admin_executor_service\admin_executor_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_service"=.\admin_service\admin_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "agent_service"=.\agent_service\agent_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "ia"=..\nel\src\ai.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "log_service"=.\log_service\log_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "login_service"=.\login_service\login_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "naming_service"=.\naming_service\naming_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "time_service"=.\time_service\time_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "welcome_service"=.\welcome_service\welcome_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.5&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.5&content-type=text/plain/index.html new file mode 100644 index 00000000..d643a665 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.5&content-type=text/plain/index.html @@ -0,0 +1,200 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "admin"=..\nel\tools\net\admin\admin.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_executor_service"=.\admin_executor_service\admin_executor_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_service"=.\admin_service\admin_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "ia"=..\nel\src\ai.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "log_service"=.\log_service\log_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "login_service"=.\login_service\login_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "naming_service"=.\naming_service\naming_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "time_service"=.\time_service\time_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "welcome_service"=.\welcome_service\welcome_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.6&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.6&content-type=text/plain/index.html new file mode 100644 index 00000000..a94da8e2 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/nelns/services.dsw?rev=1.6&content-type=text/plain/index.html @@ -0,0 +1,221 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "admin"=..\nel\tools\net\admin\admin.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_executor_service"=.\admin_executor_service\admin_executor_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "admin_service"=.\admin_service\admin_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "log_service"=.\log_service\log_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "login_service"=.\login_service\login_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "naming_service"=.\naming_service\naming_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "pacs"=..\nel\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "pacs_service"=.\pacs_service\pacs_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "time_service"=.\time_service\time_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "welcome_service"=.\welcome_service\welcome_service.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs/AUTHORS?rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/snowballs/AUTHORS?rev=1.1 new file mode 100644 index 00000000..0f6a0fb4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs/AUTHORS?rev=1.1 @@ -0,0 +1,7 @@ +Nevrax Team : + + Olivier Cado + Stephane Coutelas + Vianney Lecroart + Cedric Valignat + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs/COPYING?rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/snowballs/COPYING?rev=1.1 new file mode 100644 index 00000000..d60c31a9 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs/COPYING?rev=1.1 @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs/Makefile.am?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs/Makefile.am?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..d30d0c94 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs/Makefile.am?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,17 @@ +# +# $Id: Makefile.am,v 1.1 2001/04/17 13:00:32 valignat Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +SUBDIRS = client server + + +dist-hook: + cp -pr $(srcdir)/bootstrap $(distdir) + + +# End of Makefile.am + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs/NEWS?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs/NEWS?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..885aefd5 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs/NEWS?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,20 @@ + + - release correctly the video screen when an error occurs + +-- 02/06/2001 snowballs version 0.2, NeL version 0.3 + + - lensflare effect + - new radar system + - dummy mesh shadow + - precomputed static shadows + - new compressed textures + - zoom + - bug fixes + - compile on linux + - font clamping fixed + - you don't need ns.cfg anymore + +-- 01/17/2001 snowballs version 0.1, NeL version 0.2 + + - first release + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs/THANKS?rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/snowballs/THANKS?rev=1.1 new file mode 100644 index 00000000..b0db9190 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs/THANKS?rev=1.1 @@ -0,0 +1,9 @@ +We would like to thanks these peoples : + +Loic Dachary + for the configure srcipt improvement and advices. +Dan Erikson + for X11 mouse management optimisation. + +And all users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs/bootstrap?content-type=text/plain&rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/snowballs/bootstrap?content-type=text/plain&rev=1.1 new file mode 100644 index 00000000..666c7d38 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs/bootstrap?content-type=text/plain&rev=1.1 @@ -0,0 +1,11 @@ +#! /bin/sh + +set -x + +rm -f config.cache + +aclocal \ +&& autoheader \ +&& automake --gnu --add-missing --copy \ +&& autoconf + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1 new file mode 100644 index 00000000..3fe87b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs/configure.in?rev=1.1 @@ -0,0 +1,264 @@ +dnl +dnl Configuration script for client +dnl +dnl $Id: configure.in,v 1.1 2001/04/17 13:00:32 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(client/src/client.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=2 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(snowball, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl X11 +dnl ========== + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + AC_MSG_ERROR(X11 must be installed.) +fi + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X""; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + +dnl Ask user for path to the STLPort library files +AC_ARG_WITH( stllib, + [ --with-stllib= path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib)] +) + +if test X"$STLLIB_DIR" != X""; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile the client (www.stlport.org)]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel= prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the client (www.nevrax.org)]) +) + + +dnl ========== +dnl FreeType 2 +dnl ========== + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile the client (www.freetype.org).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +dnl CXXFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" +dnl LIBS="$LIBS ${FREETYPE_LIBS}" +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([Freetype 2 library is needed to compile the client (www.stlport.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + client/Makefile \ + client/src/Makefile \ + server/Makefile \ + server/moves_service/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/AUTHORS?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/AUTHORS?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..0f6a0fb4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/AUTHORS?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,7 @@ +Nevrax Team : + + Olivier Cado + Stephane Coutelas + Vianney Lecroart + Cedric Valignat + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/COPYING?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/COPYING?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..d60c31a9 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/COPYING?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/INSTALL?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/INSTALL?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..6877f146 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/INSTALL?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,90 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + Snowballs need the folowing libraries : + + - STLPort 4.0 + - NeL + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort libraries. This is done in the + [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + Open the workspace file "snowballs.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/prefix/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/prefix/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the swnoballs directory : + + % ./bootstrap + + In the snowballs directory do : + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport" option. + This option permit to override the default STL headers. + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/INSTALL?rev=1.4 b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/INSTALL?rev=1.4 new file mode 100644 index 00000000..e38d22e7 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/INSTALL?rev=1.4 @@ -0,0 +1,116 @@ + +If you find any bugs use the Nevrax Bug Tracking System : + + + +If you need any help contact us on the NeL mailing-list : + + + + +Requirements +============ + + Snowballs need the folowing libraries : + + - STLPort 4.5 + - NeL + Default install plus NeL Sound. + You need to launch the configure script with the '--enable-sound' + option. + - NeLNS + This is mandatory to run the Snowballs server but it isn't for + the Snowballs client. + + And the lastest Snowballs data pack available : + + + + +Compilation +=========== + + 1. Windows compilation + ---------------------- + + The compilation on Windows has been done only with Visual C++ 6.0 SP4. + + Set up Visual C++ to find the STLPort libraries. This is done in the + [Tools -> Options -> Directories] menu : + + - Add the STLPort include directory to the "Library Files" category. + ex: D:/stlport-4.0/stlport + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/stlport-4.0/lib + + Open the workspace file "snowballs.dsw" (in the menu [File -> Workspace]). + + Setup Visual C++ to find the NeL include and library files : + + - Add the NEL include directory to the "Library Files" category. + ex: D:/prefix/include + + - Add the STLPort library directory to the "Library Files" category. + ex: D:/prefix/lib + + + 2. GNU/Linux compilation + ------------------------ + + In the case (ex: after a cvs checkout) that you need to rebuild the + "configure" script and/or the "Makefile.in" files, execute the + "bootstrap" script in the swnoballs directory : + + % ./bootstrap + + In the snowballs directory do : + + % ./configure --with-stlport= + + % make + + The "configure" script must be call with the "--with-stlport" option. + This option permit to override the default STL headers. + + To disable the client or the server compilation and install, use + '--disable-client' and '--disable-server' options. + + To pass additional arguments to the C++ compiler, use the command line : + + % CXXFLAGS=-pipe ./configure --with-stlport= + + To get the complete list of arguments of the "configure" script use the + following command : + + % ./configure --help + + +Installation +============ + + 1. Windows installation + ----------------------- + + Not done yet. + + + 2. GNU/Linux installation + -------------------------- + + % make install + + +Contact us +========== + + If you find any bugs use the Nevrax Bug Tracking System : + + + + If you need any help contact us on the NeL mailing-list : + + + + + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/Makefile.am?rev=1.4&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/Makefile.am?rev=1.4&content-type=text/plain/index.html new file mode 100644 index 00000000..ec0df932 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/Makefile.am?rev=1.4&content-type=text/plain/index.html @@ -0,0 +1,35 @@ +# +# $Id: Makefile.am,v 1.4 2002/04/10 07:32:46 lecroart Exp $ +# + +MAINTAINERCLEANFILES = Makefile.in configure config.guess missing \ + config.sub ltconfig aclocal.m4 config.h.in \ + install-sh mkinstalldirs + +EXTRA_DIST = acconfig.h bootstrap \ + snowballs2.dsw + +DIST_SUBDIRS = client server + +SUBDIRS = @SNO_SUBDIRS@ + +install-data-hook: + mkdir -p ${DESTDIR}${logdir} + mkdir -p ${DESTDIR}${pkgsysconfdir} +# +# Do not override existing config file +# + test -f ${DESTDIR}${pkgsysconfdir}/client.cfg || cp client/client.cfg ${DESTDIR}${pkgsysconfdir} + for service in frontend chat position ; \ + do \ + test -f ${DESTDIR}${pkgsysconfdir}/$${service}_service.cfg || cp ${srcdir}/server/$${service}/$${service}_service.cfg ${DESTDIR}${pkgsysconfdir} ; \ + done + +uninstall-local: + rm -f ${DESTDIR}${pkgsysconfdir}/client.cfg + for service in frontend chat position ; \ + do \ + rm -f ${DESTDIR}${pkgsysconfdir}/$${service}_service.cfg ; \ + done + +# End of Makefile.am diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/NEWS?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/NEWS?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..496a72d3 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/NEWS?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,6 @@ + +No news, good news ... + +Currently, this file exist to get rid of an Automake error. The content of +that file will be what it should be at the next release. + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/README?content-type=text/plain&rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/README?content-type=text/plain&rev=1.1 new file mode 100644 index 00000000..33e43ef1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/README?content-type=text/plain&rev=1.1 @@ -0,0 +1,142 @@ + +1. What's this document about? + --------------------------- + +This document contains useful information about SNOWBALLS, NeL, Nevrax, +technical requirements, and caveats about compilation and installation. +It also includes a short "user manual" for the programs provided. It is +highly recommended reading. + + +2. What are NeL and Nevrax + ----------------------- + +You should really take a look at the http://www.nevrax.org/ (for NeL) +and http://www.nevrax.com/ (for Nevrax). NeL is a free software +framework developped and maintained by Nevrax Ltd, for the purpose of +building internet multiuser entertainment. + +Nevrax is a company dedicated to Free Software, which is why our +tools are covered by the GPL. See the attached license file. + + +3. What's in the package? + ---------------------- + +The package contains: + + - The latest source code for the NeL client and server frameworks + - The source code and data for a sample NeL game called 'SNOWBALLS' + +If you have a source distribution, you need to compile the source to +produce the various executables. If you have a binary distribution, +you have a pre-built exe client for Snowballs, but no source. + +The source code is provided as is, and reflects the state of the NeL +framework at the release date. We have done our best to insure that the +snapshot you are using now compiles and works correctly. However, we +only test on a limited range of configurations, and the vagaries of +OS and hardware means we cannot guarantee it compiles and executes +correctly on your system at the time. + +If you are using CVS, you can keep in synch with the NeL Development Team +as we have included the required CVS information. An update will give you +current source. We do not guarantee that the source in CVS will compile +and work correctly at all time as it includes the latest work in progress. + + +4. Caveat + ------ + +The sample client, server and data files provided do not accurately reflect +our game currently in production. We do not intend penguins and gnus to appear +in the final game, and most of the gameplay you will see does not reflect +what we will implement later. + + +5. Compiling NeL and SNOWBALLS + --------------------------- + +You will need a C++ compiler to properly compile and execute the NeL +framework. The program compiles reasonably under a Unix/GCC environment, +but it has been chiefly tested under a Linux environment. + +The server has been compiled and executed on a Windows machine, but it +is highly recommended that you run it on a separate Linux machine. The +client has been compiled and executed on a Linux machine, but will +probably not work on other unix systems (yet). + +The client and server require an operating TCP/IP stack to communicate. + +The data files for the client and server should be in the ./data child +directories of the directory in which the executables are located. + +See the INSTALL file for the requirements and installation instructions. + + +6. Running SNOWBALLS + ----------------- + +It is highly recommended that you run the client on a PC with plenty of +main memory (128Megs+) and a 3D card that supports T&L in hardware and +has 32Mb of memory. Lesser configurations will probably give you very +poor framerates. + +If you want to run your own server, start the naming service on the +machine that you want to use as a server. The binary is named, +appropriately, naming_service. Otherwise, you may use the default server +itsalive.nevrax.org, which is hosted here at Nevrax. + +The client starts normally. Once started, you'll be asked to select +your langage. You then fill in a name and password (which must be +alpha-numeric), and you'll be able to enter the test area. If you enter +a user name that has never been used before on the server that you are +connected to then a new account will be created with the password that +you enter at the 'PASSWORD' prompt. You'll need to remeber this password +as you'll need each time you login in the future. + +Select now your character type and server to play on, and you're set. + +You're now a penguin on an artic snowfield. You have snowballs which you +can throw at other people. When you throw a snowball, you have a few +seconds during which you gather more snow before you can throw the next +one. If you hit someone, your score increases, and the snowed opponent +becomes immune to further snowing (he flashes on the screen) for 5s. He +cannot retaliate while invulnerable. + +If you get stuck somehow, remove the client.CFG file from your client +directory, and restart. Good luck. If you find a penguin named TMS on +the server, it's me, throw me a low one :) + + +7. The controls in SNOWBALLS + ------------------------- + +Use the mouse to look around. +Use arrow keys to move forward, backward, strafe left and strafe right. + +F1: switch on/off informations +F2: switch on/off the chat text full height +SHIFT-F2: clear the chat +F3: switch on/off the wireframe mode +F4: change movement speed +F5: dump client and server information to the log file +F6: switch on/off the radar +F7: zoom out the radar +F8: zoom in the radar +F9: capture or uncapture the mouse +F10: Windows menu +F12: take a screenshot +PgUp/PgDw: Zoom in/out +TAB: display scores +ESC: quit +Left Mouse Button: throw a snowball +Type text followed by ENTER to broadcast messages + + +8. Contacting us + ------------- + +For comments and problems relating to SNOWBALLS contact us at snowballs@nevrax.com +For comments, bugs and suggestions relating to NeL contact us at nel@nevrax.com + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/README?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/README?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..7b37e850 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/README?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,140 @@ + +1. What's this document about? + --------------------------- + +This document contains useful information about SNOWBALLS, NeL, Nevrax, +technical requirements, and caveats about compilation and installation. +It also includes a short "user manual" for the programs provided. It is +highly recommended reading. + + +2. What are NeL and Nevrax + ----------------------- + +You should really take a look at the http://www.nevrax.org/ (for NeL) +and http://www.nevrax.com/ (for Nevrax). NeL is a free software +framework developped and maintained by Nevrax Ltd, for the purpose of +building internet multiuser entertainment. + +Nevrax is a company dedicated to Free Software, which is why our +tools are covered by the GPL. See the attached license file. + + +3. What's in the package? + ---------------------- + +The package contains: + + - The latest source code for the NeL client and server frameworks + - The source code and data for a sample NeL game called 'SNOWBALLS' + +If you have a source distribution, you need to compile the source to +produce the various executables. If you have a binary distribution, +you have a pre-built exe client for Snowballs, but no source. + +The source code is provided as is, and reflects the state of the NeL +framework at the release date. We have done our best to insure that the +snapshot you are using now compiles and works correctly. However, we +only test on a limited range of configurations, and the vagaries of +OS and hardware means we cannot guarantee it compiles and executes +correctly on your system at the time. + +If you are using CVS, you can keep in synch with the NeL Development Team +as we have included the required CVS information. An update will give you +current source. We do not guarantee that the source in CVS will compile +and work correctly at all time as it includes the latest work in progress. + + +4. Caveat + ------ + +The sample client, server and data files provided do not accurately reflect +our game currently in production. We do not intend penguins and gnus to appear +in the final game, and most of the gameplay you will see does not reflect +what we will implement later. + + +5. Compiling NeL and SNOWBALLS + --------------------------- + +You will need a C++ compiler to properly compile and execute the NeL +framework. The program compiles reasonably under a Unix/GCC environment, +but it has been chiefly tested under a Linux environment. + +The server has been compiled and executed on a Windows machine, but it +is highly recommended that you run it on a separate Linux machine. The +client has been compiled and executed on a Linux machine, but will +probably not work on other unix systems (yet). + +The client and server require an operating TCP/IP stack to communicate. + +The data files for the client and server should be in the ./data child +directories of the directory in which the executables are located. + +See the INSTALL file for the requirements and installation instructions. + + +6. Running SNOWBALLS + ----------------- + +It is highly recommended that you run the client on a PC with plenty of +main memory (128Megs+) and a 3D card that supports T&L in hardware and +has 32Mb of memory. Lesser configurations will probably give you very +poor framerates. + +If you want to run your own server, start the naming service on the +machine that you want to use as a server. The binary is named, +appropriately, naming_service. Otherwise, you may use the default server +itsalive.nevrax.org, which is hosted here at Nevrax. + +The client starts normally. Once started, you'll be asked to select +your langage. You then fill in a name and password (which must be +alpha-numeric), and you'll be able to enter the test area. If you enter +a user name that has never been used before on the server that you are +connected to then a new account will be created with the password that +you enter at the 'PASSWORD' prompt. You'll need to remeber this password +as you'll need each time you login in the future. + +Select now your character type and server to play on, and you're set. + +You're now a penguin on an artic snowfield. You have snowballs which you +can throw at other people. When you throw a snowball, you have a few +seconds during which you gather more snow before you can throw the next +one. If you hit someone, your score increases, and the snowed opponent +becomes immune to further snowing (he flashes on the screen) for 5s. He +cannot retaliate while invulnerable. + +If you get stuck somehow, remove the client.CFG file from your client +directory, and restart. Good luck. If you find a penguin named TMS on +the server, it's me, throw me a low one :) + + +7. The controls in SNOWBALLS + ------------------------- + +Use the mouse to look around. +Use arrow keys to move forward, backward, strafe left and strafe right. + +F1: go online (display the login interface) +F2: go offline +F3: switch on/off the wireframe mode +F4: clear the chat window +F5: switch on/off the chat text +F6: switch on/off the radar +F7: zoom out the radar +F8: zoom in the radar +F9: capture or uncapture the mouse +F10: Windows menu +F11: reset player position +F12: take a screenshot +SHIFT-ESC: quit +Left Mouse Button: throw a snowball +Type text followed by ENTER to broadcast messages + + +8. Contacting us + ------------- + +For comments and problems relating to SNOWBALLS contact us at snowballs@nevrax.com +For comments, bugs and suggestions relating to NeL contact us at nel@nevrax.com + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/THANKS?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/THANKS?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..e3366f29 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/THANKS?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,3 @@ + +All users ... + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acconfig.h?rev=1.1 b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acconfig.h?rev=1.1 new file mode 100644 index 00000000..b6d452a4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acconfig.h?rev=1.1 @@ -0,0 +1,12 @@ + + +/* + * Configuration files directory path + */ +#undef SNOWBALLS_CONFIG + +/* + * Log files directory path + */ +#undef SNOWBALLS_LOGS + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.10&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.10&content-type=text/plain/index.html new file mode 100644 index 00000000..cd93eb5c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.10&content-type=text/plain/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.10 2002/03/21 10:54:37 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.11&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.11&content-type=text/plain/index.html new file mode 100644 index 00000000..49d5b40b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.11&content-type=text/plain/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.11 2002/03/26 14:37:45 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.12&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.12&content-type=text/plain/index.html new file mode 100644 index 00000000..9184a376 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.12&content-type=text/plain/index.html @@ -0,0 +1,1049 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.12 2002/03/29 10:19:10 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.13&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.13&content-type=text/plain/index.html new file mode 100644 index 00000000..d54d6b17 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.13&content-type=text/plain/index.html @@ -0,0 +1,1076 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.13 2002/04/16 12:01:39 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.14 b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.14 new file mode 100644 index 00000000..3a62ee8b --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.14 @@ -0,0 +1,1079 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.14 2002/04/25 17:52:16 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl AM_PATH_CCACHE +dnl +dnl Option: none. +dnl Description: check the instalation of the Ccache utility. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_test_lib="$2" +is_mandatory="$3" + +if test $is_mandatory = "yes" +then + + AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])]) +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/include]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" +nelgeorges_is_mandatory="$7" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +dnl +dnl Configure options (--with-nel*) have precendence +dnl over nel-config only set variables if they are not +dnl specified +dnl +if test "$NEL_CONFIG" != "no" +then + if test -z "$with_nel" -a -z "$with_nel_include" + then + CXXFLAGS="$CXXFLAGS `nel-config --cflags`" + fi + + if test -z "$with_nel" -a -z "$with_nel_lib" + then + LDFLAGS="`nel-config --ldflags` $LDFLAGS" + fi +fi + +dnl +dnl Set nel_libraries and nel_includes according to +dnl user specification (--with-nel*) if any. +dnl --with-nel-include and --with-nel-lib have precendence +dnl over --with-nel +dnl +if test "$with_nel" = "no" +then + dnl The user explicitly disabled the use of the NeL + AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel]) +else + if test "$with_nel" -a "$with_nel" != "yes" + then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" + fi +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +dnl +dnl Set compilation variables +dnl +if test "$nel_includes" +then + CXXFLAGS="$CXXFLAGS -I$nel_includes" +fi + +if test "$nel_libraries" +then + LDFLAGS="-L$nel_libraries $LDFLAGS" +fi + +dnl +dnl Collect headers information and bark if missing and +dnl mandatory +dnl + +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) +MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory) + +dnl +dnl Collect libraries information and bark if missing and +dnl mandatory +dnl + +MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport]) +else + stlport_includes="/usr/include/stlport" + if test "$with_stlport" -a "$with_stlport" != yes + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +dnl Check for the 'pthread' library. SLTPort needs it. +AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS + +dnl Put STLPorts includes in CXXFLAGS +if test "$stlport_includes" +then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" +fi + +dnl Put STLPorts libraries directory in LIBS +if test "$stlport_libraries" +then + LIBS="-L$stlport_libraries $LIBS" +else + stlport_libraries='default' +fi + +dnl Test the headers + +AC_CHECK_HEADER(algorithm, + have_stlport_headers="yes", + have_stlport_headers="no" ) + +AC_MSG_CHECKING(for STLPort headers) + +if test "$have_stlport_headers" = "yes" +then + AC_MSG_RESULT([$stlport_includes]) +else + AC_MSG_RESULT(no) +fi + +AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no") + +AC_MSG_CHECKING(for STLPort library) + +if test "$have_stlport_libraries" != "no" +then + AC_MSG_RESULT([$stlport_libraries]) +else + AC_MSG_RESULT(no) +fi + +if test "$have_stlport_headers" = "yes" && + test "$have_stlport_libraries" != "no" +then + have_stlport="yes" +else + have_stlport="no" +fi + +if test "$have_stlport" = "no" +then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) +fi + +AC_LANG_RESTORE + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +# ========================================================================= +# AM_PATH_CCACHE : Ccache checking macros + +AC_DEFUN(AM_PATH_CCACHE, +[ + +AC_ARG_WITH( ccache, + [ --with-ccache use ccache for compiling.], + [ using_ccache=$with_ccache ] +) + +AC_PATH_PROG(CCACHE, ccache) +if test "$CCACHE" -a "$using_ccache" = "yes" +then + CC="ccache $CC" + CXX="ccache $CXX" +fi + +]) + + +dnl ========================================================================= +dnl End of file + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.7&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.7&content-type=text/plain/index.html new file mode 100644 index 00000000..a7fcf13f --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.7&content-type=text/plain/index.html @@ -0,0 +1,1054 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.7 2002/01/29 13:21:42 valignat Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +stlport_lib="stlport_gcc" + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.8&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.8&content-type=text/plain/index.html new file mode 100644 index 00000000..7d877590 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/acinclude.m4?rev=1.8&content-type=text/plain/index.html @@ -0,0 +1,1059 @@ +dnl ========================================================================= +dnl +dnl Macros used by Nevrax in configure.in files. +dnl +dnl $Id: acinclude.m4,v 1.8 2002/02/18 12:58:38 lecroart Exp $ +dnl +dnl ========================================================================= + +dnl ========================================================================= +dnl WARNING: The original version of this file is placed in the $CVSROOT/code +dnl directory. +dnl There is links in the $CVSROOT/code sub-directories to that file +dnl (ex: $CVSROOT/code/nel), so be careful of the consequences of +dnl any modification of that file. +dnl ========================================================================= + +dnl ========================================================================= +dnl Macros available in that file. +dnl +dnl +dnl AM_NEL_DEBUG +dnl +dnl Option: none. +dnl Description: manage the different debug and the release mode by setting +dnl correctly the CFLAGS and CXXFLAGS variables. +dnl +dnl +dnl AM_PATH_NEL +dnl +dnl Option: none. +dnl Description: check the instalation of the NeL library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_STLPORT +dnl +dnl Option: none. +dnl Description: check the instalation of the STLPort library and set the +dnl CXXFLAGS and LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENGL +dnl +dnl Option: "yes" if the use of the OpenGL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENGL_CFLAGS and OPENGL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_FREETYPE +dnl +dnl Option: "yes" if the use of the Freetype library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_XF86VIDMODE +dnl +dnl Option: none. +dnl Description: check the instalation of the OpenGL library and set the +dnl XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_OPENAL +dnl +dnl Option: "yes" if the use of the OpenAL library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl OPENAL_CFLAGS and OPENAL_LIBS variables to use it. +dnl +dnl +dnl AM_PATH_PYTHON +dnl +dnl Option: "yes" if the use of the Python library is mandatory. +dnl Description: check the instalation of the OpenGL library and set the +dnl PYTHON_CFLAGS and PYTHON_LIBS variables to use it. +dnl +dnl ========================================================================= + + +# ========================================================================= +# AM_NEL_DEBUG + +AC_DEFUN(AM_NEL_DEBUG, +[ + +MAX_C_OPTIMIZE="-O6" + +STL_DEBUG="-D__STL_DEBUG" + +NL_DEBUG="-DNL_DEBUG" +NL_DEBUG_FAST="-DNL_DEBUG_FAST" +NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" +NL_RELEASE="-DNL_RELEASE" + +AC_ARG_WITH(debug, + [ --with-debug[=full|medium|fast] + Build a debug version (huge libraries). + Full mode set only NeL and STL debug flags. + Medium mode set NeL debug flags with inline + optimization (default mode). + Fast mode is like the Medium mode with some basic + optimization. + --without-debug Build without debugging code (default)], + [with_debug=$withval], + [with_debug=no]) + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" + OPTIMIZE_INLINE_CXXFLAGS="-finline-functions" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" + OPTIMIZE_INLINE_CXXFLAGS="" +fi + +if test "$with_debug" = "yes" -o "$with_debug" = "medium" +then + dnl Medium debug. Inline optimization + CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS" +else + if test "$with_debug" = "full" + then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS" + else + if test "$with_debug" = "fast" + then + dnl Fast debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS" + else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS" + fi + fi +fi + +dnl AC_MSG_RESULT([CFLAGS = $CFLAGS]) +dnl AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS]) + +]) + + +# ========================================================================= +# MY_NEL_HEADER_CHK : NeL header files checking macros + +AC_DEFUN(MY_NEL_HEADER_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +header="$2" +macro="$3" +is_mandatory="$4" + +if test $is_mandatory = "yes" +then + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $NEL_CFLAGS" + + AC_MSG_CHECKING(for $header) + + AC_EGREP_CPP( yo_header, +[#include <$header> +#ifdef $macro + yo_header +#endif], + have_header="yes", + have_header="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_header" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi + + +]) + + +# ========================================================================= +# MY_NEL_LIB_CHK : NeL library checking macros + +AC_DEFUN(MY_NEL_LIB_CHK, +[ AC_REQUIRE_CPP() + +chk_message_obj="$1" +nel_libraries="$2" +nel_test_lib="$3" +nel_additional_libs="$4" +is_mandatory="$5" + +if test $is_mandatory = "yes" +then + + AC_MSG_CHECKING(for -l$nel_test_lib) + + NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS" + + AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_nel_test_libraries" = "yes" + then + AC_MSG_RESULT(yes) + else + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).]) + else + AC_MSG_RESULT(no) + fi + fi +fi +]) + + +# ========================================================================= +# AM_PATH_NEL : NeL checking macros +AC_DEFUN(AM_PATH_NEL, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( nel, + [ --with-nel= path to the NeL install files directory. + e.g. /usr/local/nel]) + +AC_ARG_WITH( nel-include, + [ --with-nel-include= + path to the NeL header files directory. + e.g. /usr/local/nel/stlport]) + +AC_ARG_WITH( nel-lib, + [ --with-nel-lib= + path to the NeL library files directory. + e.g. /usr/local/nel/lib]) + + +nel_misc_lib="nelmisc" +nel_net_lib="nelnet" +nel_3d_lib="nel3d" +nel_pacs_lib="nelpacs" +nel_sound_lib="nelsnd" +nel_ai_lib="nelai" + +nelmisc_is_mandatory="$1" +nelnet_is_mandatory="$2" +nel3d_is_mandatory="$3" +nelpacs_is_mandatory="$4" +nelsound_is_mandatory="$5" +nelai_is_mandatory="$6" + +dnl Check for nel-config +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no" +then + have_nel_config="no" +else + NEL_CFLAGS=`nel-config --cflags` + + NEL_LIBS_CONFIG=`nel-config --libs` + + NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'` + + have_nel_config="yes" +fi + +if test "$with_nel" +then + nel_includes="$with_nel/include" + nel_libraries="$with_nel/lib" +fi + +if test "$with_nel_include" +then + nel_includes="$with_nel_include" +fi + +if test "$with_nel_lib" +then + nel_libraries="$with_nel_lib" +fi + +if test "$nel_includes" +then + NEL_CFLAGS="-I$nel_includes" +fi + +if test "$nel_libraries" +then + NEL_LIBS="-L$nel_libraries" +fi + +dnl Checking for NeL headers +MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) +MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) +MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory) +MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory) +MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory) +MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) + +dnl Checking for NeL libraries +MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory) +MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory) +MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory) +MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory) +MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory) +MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory) + +]) + + +# ========================================================================= +# AM_PATH_STLPORT : STLPort checking macros + +AC_DEFUN(AM_PATH_STLPORT, +[ AC_REQUIRE_CPP() + +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install files directory. + e.g. /usr/local/stlport]) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport]) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib]) + +if test "$with_debug" = "full" +then + stlport_lib="stlport_gcc_stldebug" +else + stlport_lib="stlport_gcc" +fi + +if test "$with_stlport" = no +then + dnl The user explicitly disabled the use of the STLPorts + AC_MSG_CHECKING(STLPort) + have_stlport="disabled" + AC_MSG_RESULT(disabled (*** EXPERIMENTAL ***)) +else + if test "$with_stlport" + then + stlport_includes="$with_stlport/stlport" + stlport_libraries="$with_stlport/lib" + + if test ! -d "$stlport_includes" + then + stlport_includes="$with_stlport/include/stlport" + fi + fi +fi + +if test -z "$have_stlport" -a "$with_stlport_include" +then + stlport_includes="$with_stlport_include" +fi + +if test -z "$have_stlport" -a "$with_stlport_lib" +then + stlport_libraries="$with_stlport_lib" +fi + +if test -z "$have_stlport" +then + dnl Put STLPorts includes in CXXFLAGS + if test "$stlport_includes" + then + CXXFLAGS="$CXXFLAGS -I$stlport_includes" + fi + + dnl Put STLPorts libraries in LIBS + if test "$stlport_libraries" + then + LIBS="-L$stlport_libraries $LIBS -l$stlport_lib" + fi + + dnl Test the headers + AC_MSG_CHECKING(for STLPort headers) + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS" + + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + have_stlport_headers="yes", + have_stlport_headers="no" ) + + if test "$have_stlport_headers" = "yes" + then + AC_MSG_RESULT([$stlport_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for STLPort libraries) + + CPPFLAGS="$CXXFLAGS $LIBS" + + AC_TRY_LINK( , , have_stlport_libraries="yes", have_stlport_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_stlport_libraries" = "yes" + then + AC_MSG_RESULT([$stlport_libraries]) + else + AC_MSG_RESULT(no) + fi + + if test "$have_stlport_headers" = "yes" \ + && test "$have_stlport_libraries" = "yes" + then + have_stlport="yes" + else + have_stlport="no" + fi + + if test "$have_stlport" = "no" + then + AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).]) + fi + +fi + +]) + + +# ========================================================================= +# AM_PATH_OPENGL : OpenGL checking macros + +AC_DEFUN(AM_PATH_OPENGL, +[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2) + +is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( opengl, + [ --with-opengl= path to the OpenGL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( opengl-include, + [ --with-opengl-include= + path to the OpenGL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( opengl-lib, + [ --with-opengl-lib= + path to the OpenGL library files directory. + e.g. /usr/local/lib]) + +opengl_lib="GL" + +if test "$with_opengl" +then + opengl_includes="$with_opengl/include" + opengl_libraries="$with_opengl/lib" +fi + +if test "$with_opengl_include" +then + opengl_includes="$with_opengl_include" +fi + +if test "$with_opengl_lib" +then + opengl_libraries="$with_opengl_lib" +fi + +dnl Set OPENGL_CFLAGS +if test "$opengl_includes" +then + OPENGL_CFLAGS="-I$opengl_includes" +fi + +dnl Set OPENGL_LIBS +if test "$opengl_libraries" +then + OPENGL_LIBS="-L$opengl_libraries" +fi +OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib" + +dnl Test the headers +_CPPFLAGS="$CPPFLAGS" + +CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS" + +AC_EGREP_CPP( yo_opengl, +[#include +#if defined(GL_VERSION_1_2) + yo_opengl +#endif], + have_opengl_headers="yes", + have_opengl_headers="no" ) + +if test "$have_opengl_headers" = "yes" +then + if test "$opengl_includes" + then + AC_MSG_RESULT([$opengl_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Checking the GLEXT version >= 7 +AC_MSG_CHECKING(for and GLEXT version >= 7) + +AC_EGREP_CPP( yo_glext_version, +[#include +#ifdef GL_GLEXT_VERSION +#if GL_GLEXT_VERSION >= 7 + yo_glext_version +#endif +#endif], + have_glext="yes", + have_glext="no" ) + +if test "$have_glext" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/]) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenGL libraries) + +CPPFLAGS="$CXXFLAGS $OPENGL_LIBS" + +AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_opengl_libraries" = "yes" +then + if test "$opengl_libraries" + then + AC_MSG_RESULT([$opengl_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +opengl_libraries="$opengl_libraries" + +if test "$have_opengl_headers" = "yes" \ + -a "$have_glext" = "yes" \ + -a "$have_opengl_libraries" = "yes" +then + have_opengl="yes" +else + have_opengl="no" +fi + +if test "$have_opengl" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)]) +fi + +AC_SUBST(OPENGL_CFLAGS) +AC_SUBST(OPENGL_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_FREETYPE : FreeType checking macros + +AC_DEFUN(AM_PATH_FREETYPE, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +AC_ARG_WITH( freetype, + [ --with-freetype= path to the FreeType install files directory. + e.g. /usr/local/freetype]) + +AC_ARG_WITH( freetype-include, + [ --with-freetype-include= + path to the FreeType header files directory. + e.g. /usr/local/freetype/include]) + +AC_ARG_WITH( freetype-lib, + [ --with-freetype-lib= + path to the FreeType library files directory. + e.g. /usr/local/freetype/lib]) + +freetype_lib="freetype" + + +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" +then + have_freetype_config="no" +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` + have_freetype_config="yes" +fi + +if test "$with_freetype" +then + freetype_includes="$with_freetype/include" + freetype_libraries="$with_freetype/lib" +fi + +if test "$with_freetype_include" +then + freetype_includes="$with_freetype_include" +fi + +if test "$with_freetype_lib" +then + freetype_libraries="$with_freetype_lib" +fi + +if test "$freetype_includes" +then + FREETYPE_CFLAGS="-I$freetype_includes" +fi + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" + +AC_MSG_CHECKING(for FreeType version = 2) + +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], + have_freetype2="yes", + have_freetype2="no") + +if test "$have_freetype2" = "yes" +then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for FreeType libraries) + +if test $freetype_libraries +then + FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib" +fi + +CPPFLAGS="$CXXFLAGS $FREETYPE_LIBS" + +AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_freetype_libraries" = "yes" +then + if test "$freetype_libraries" + then + AC_MSG_RESULT([$freetype_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes" +then + have_freetype="yes" +else + have_freetype="no" +fi + +if test "$have_freetype" = "no" && test "$is_mandatory" = "yes" +then + AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)]) +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_XF86VIDMODE : XF86VidMode checking macros + +AC_DEFUN(AM_PATH_XF86VIDMODE, +[ AC_MSG_CHECKING(for XF86VidMode extension) + +AC_REQUIRE_CPP() + +AC_ARG_WITH( xf86vidmode-lib, + [ --with-xf86vidmode-lib= + path to the XF86VidMode library. + e.g. /usr/X11R6/lib] ) + +xf86vidmode_lib="Xxf86vm" + +if test "$with_xf86vidmode_lib" = no +then + dnl The user explicitly disabled the use of XF86VidMode + have_xf86vidmode="disabled" + AC_MSG_RESULT(disabled) +else + if test "$with_xf86vidmode_lib" + then + xf86vidmode_libraries="$with_xf86vidmode_lib" + fi + + XF86VIDMODE_CFLAGS="-DXF86VIDMODE" +fi + +if test -z "$have_xf86vidmode" +dnl -a "$with_xf86vidmode_lib" +then + if test "$xf86vidmode_libraries" + then + XF86VIDMODE_LIBS="-L$xf86vidmode_libraries" + fi + + XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib" + + _CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS" + + AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_xf86vidmode_libraries" = "yes" + then + have_xf86vidmode="yes" + if test "$xf86vidmode_libraries" + then + AC_MSG_RESULT($xf86vidmode_libraries) + else + AC_MSG_RESULT(yes) + fi + else + have_xf86vidmode="no" + AC_MSG_RESULT(no, no fullscreen support available.) + fi + + xf86vidmode_libraries="$xf86vidmode_libraries" + +fi + +AC_SUBST(XF86VIDMODE_CFLAGS) +AC_SUBST(XF86VIDMODE_LIBS) + +]) + + +# ========================================================================= +# AM_PATH_OPENAL : OpenAL checking macros + +AC_DEFUN(AM_PATH_OPENAL, +[ is_mandatory="$1" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the OpenAL files location +AC_ARG_WITH( openal, + [ --with-openal= path to the OpenAL install files directory. + e.g. /usr/local]) + +AC_ARG_WITH( openal-include, + [ --with-openal-include= + path to the OpenAL header files directory. + e.g. /usr/local/include]) + +AC_ARG_WITH( openal-lib, + [ --with-openal-lib= + path to the OpenAL library files directory. + e.g. /usr/local/lib]) + +openal_lib="openal" + +if test $with_openal +then + openal_includes="$with_openal/include" + openal_libraries="$with_openal/lib" +fi + +if test "$with_openal_include" +then + openal_includes="$with_openal_include" +fi + +if test "$with_openal_lib" +then + openal_libraries="$with_openal_lib" +fi + + +dnl Set OPENAL_CFLAGS +if test "$openal_includes" +then + OPENAL_CFLAGS="-I$openal_includes" +fi + +dnl Set OPENAL_LIBS +if test "$openal_libraries" +then + OPENAL_LIBS="-L$openal_libraries" +fi +OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" + +AC_MSG_CHECKING(for OpenAL headers) +AC_EGREP_CPP( yo_openal, +[#include +#ifdef AL_VERSION + yo_openal +#endif], + have_openal_headers="yes", + have_openal_headers="no" ) + +if test "$have_openal_headers" = "yes" +then + if test "$openal_includes" + then + AC_MSG_RESULT([$openal_includes]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +dnl Test the libraries +AC_MSG_CHECKING(for OpenAL libraries) + +CPPFLAGS="$CXXFLAGS $OPENAL_LIBS" + +AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") + +CPPFLAGS="$_CPPFLAGS" + +if test "$have_openal_libraries" = "yes" +then + if test "$openal_libraries" + then + AC_MSG_RESULT([$openal_libraries]) + else + AC_MSG_RESULT(yes) + fi +else + AC_MSG_RESULT(no) +fi + +openal_libraries="$openal_libraries" + +if test "$have_openal_headers" = "yes" \ + && test "$have_openal_libraries" = "yes" +then + have_openal="yes" +else + have_openal="no" +fi + +if test "$have_openal" = "no" -a "$is_mandatory" = "yes" +then + AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).]) +fi + +AC_SUBST(OPENAL_CFLAGS) +AC_SUBST(OPENAL_LIBS) + + +]) + + +# ========================================================================= +# AM_PATH_PYTHON : Python checking macros + +AC_DEFUN(AM_PATH_PYTHON, +[ python_version_required="$1" + +is_mandatory="$2" + +AC_REQUIRE_CPP() + +dnl Get from the user option the path to the Python files location +AC_ARG_WITH( python, + [ --with-python= path to the Python prefix installation directory. + e.g. /usr/local], + [ PYTHON_PREFIX=$with_python ] +) + +AC_ARG_WITH( python-version, + [ --with-python-version= + Python version to use, e.g. 1.5], + [ PYTHON_VERSION=$with_python_version ] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.1 python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) + +if test "$PYTHON" != "no" +then + PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` + PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + + is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION` +fi + + +if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1" +then + + if test "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)]) + else + have_python="no" + fi + +else + + python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION" + python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config" + python_lib="python$PYTHON_VERSION" + + PYTHON_CFLAGS="-I$python_includes" + PYTHON_LIBS="-L$python_libraries -l$python_lib" + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + + dnl Test the headers + AC_MSG_CHECKING(for Python headers) + + AC_EGREP_CPP( yo_python, + [#include + yo_python + ], + have_python_headers="yes", + have_python_headers="no" ) + + if test "$have_python_headers" = "yes" + then + AC_MSG_RESULT([$python_includes]) + else + AC_MSG_RESULT(no) + fi + + dnl Test the libraries + AC_MSG_CHECKING(for Python libraries) + + CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS" + + AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no") + + CPPFLAGS="$_CPPFLAGS" + + if test "$have_python_libraries" = "yes" + then + if test "$python_libraries" + then + AC_MSG_RESULT([$python_libraries]) + else + AC_MSG_RESULT(yes) + fi + else + AC_MSG_RESULT(no) + fi + + if test "$have_python_headers" = "yes" \ + && test "$have_python_libraries" = "yes" + then + have_python="yes" + else + have_python="no" + fi + + if test "$have_python" = "no" -a "$is_mandatory" = "yes" + then + AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).]) + fi + + AC_SUBST(PYTHON_CFLAGS) + AC_SUBST(PYTHON_LIBS) + +fi + +]) + + +dnl ========================================================================= +dnl End of file diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.11&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.11&content-type=text/plain/index.html new file mode 100644 index 00000000..52087603 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.11&content-type=text/plain/index.html @@ -0,0 +1,186 @@ +dnl ==================================================================== +dnl Configuration script for Snowballs 2 +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.11 2002/03/19 17:42:49 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(client/src/client.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=2 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(snowballs, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks Snowballs modules (Client / Server) to install / Disable +dnl ==================================================================== + +SNO_SUBDIRS="" + +dnl Client +AC_ARG_ENABLE( client, + [ --disable-client disable compilation and install of Snowballs Client.], + [ AC_MSG_RESULT(disable Snowballs Client.) ], + [ SNO_SUBDIRS="$SNO_SUBDIRS client" + enable_client="yes" ] ) + +dnl Server +AC_ARG_ENABLE( server, + [ --disable-server disable compilation and install of Snowballs Server.], + [ AC_MSG_RESULT(disable Snowballs Server.) ], + [ SNO_SUBDIRS="$SNO_SUBDIRS server" + enable_server="yes" ] ) + +AC_SUBST(SNO_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Set the C++ compiler as the default compiler for the configure script +dnl compilation tests +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_client" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_client) + + +dnl ==================================================================== +dnl NeL + +dnl misc net 3d pacs sound ai +AM_PATH_NEL("yes", "yes", $enable_client, $enable_client, $enable_client, "no") + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_client) + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + +dnl ==================================================================== +dnl Snowballs data, configuration and logs file location +dnl ==================================================================== + +eval SNOWBALLS_DATABASE=\"$datadir/games/snowballs/\" +AC_SUBST(SNOWBALLS_DATABASE) + +pkgsysconfdir='${sysconfdir}/snowballs' +AC_SUBST(pkgsysconfdir) + +test "x$prefix" = xNONE && prefix=$ac_default_prefix + +eval SNOWBALLS_CONFIG=\"$sysconfdir/snowballs/\" +AC_DEFINE_UNQUOTED(SNOWBALLS_CONFIG, "$SNOWBALLS_CONFIG") + +eval SNOWBALLS_LOGS=\"$localstatedir/log/snowballs/\" +AC_DEFINE_UNQUOTED(SNOWBALLS_LOGS, "$SNOWBALLS_LOGS") + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + client/Makefile \ + client/client.cfg \ + client/src/Makefile \ + server/Makefile \ + server/frontend/Makefile \ + server/frontend/src/Makefile \ + server/chat/Makefile \ + server/chat/src/Makefile \ + server/position/Makefile \ + server/position/src/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.15&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.15&content-type=text/plain/index.html new file mode 100644 index 00000000..ce7b8ec1 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.15&content-type=text/plain/index.html @@ -0,0 +1,204 @@ +dnl ==================================================================== +dnl Configuration script for Snowballs 2 +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.15 2002/04/16 12:01:39 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(client/src/client.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=2 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(snowballs, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks Snowballs modules (Client / Server) to install / Disable +dnl ==================================================================== + +SNO_SUBDIRS="" + +dnl Client +AC_ARG_ENABLE( client, + [ --disable-client disable compilation and install of Snowballs Client.], + [ AC_MSG_RESULT(disable Snowballs Client.) ], + [ SNO_SUBDIRS="$SNO_SUBDIRS client" + enable_client="yes" ] ) + +dnl Server +AC_ARG_ENABLE( server, + [ --disable-server disable compilation and install of Snowballs Server.], + [ AC_MSG_RESULT(disable Snowballs Server.) ], + [ SNO_SUBDIRS="$SNO_SUBDIRS server" + enable_server="yes" ] ) + +AC_SUBST(SNO_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_SANITY_CHECK + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Set the C++ compiler as the default compiler for the configure script +dnl compilation tests +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_client" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl OpenAL + +AM_PATH_OPENAL($enable_client) + + +dnl ==================================================================== +dnl NeL + +dnl misc net 3d pacs sound ai georges +AM_PATH_NEL("yes", "yes", $enable_client, $enable_client, $enable_client, "no", "no") + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_client) + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + +dnl ==================================================================== +dnl Snowballs data, configuration and logs file location +dnl ==================================================================== + +test "x$prefix" = xNONE && prefix=$ac_default_prefix + +AC_ARG_WITH(database, + [ --with-database[=DIR] + use DIR instead of the default datadir/games/snowballs], + [database=$withval], + [database='${datadir}/games/snowballs']) +eval eval SNOWBALLS_DATABASE=\"$database/\" +AC_SUBST(SNOWBALLS_DATABASE) + +AC_ARG_WITH(sysconfdir, + [ --with-sysconfdir[=DIR] + use DIR instead of the default sysconfdir/snowballs], + [pkgsysconfdir=$withval], + [pkgsysconfdir='${sysconfdir}/snowballs']) +AC_SUBST(pkgsysconfdir) + +eval eval SNOWBALLS_CONFIG=\"$pkgsysconfdir/\" +AC_DEFINE_UNQUOTED(SNOWBALLS_CONFIG, "$SNOWBALLS_CONFIG") + +AC_ARG_WITH(logdir, + [ --with-logdir[=DIR] + use DIR instead of the default localstatedir/log/snowballs], + [logdir=$withval], + [logdir='${localstatedir}/log/snowballs']) +AC_SUBST(logdir) + +eval eval SNOWBALLS_LOGS=\"$logdir/\" +AC_DEFINE_UNQUOTED(SNOWBALLS_LOGS, "$SNOWBALLS_LOGS") + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + client/Makefile \ + client/client.cfg \ + client/src/Makefile \ + server/Makefile \ + server/frontend/Makefile \ + server/frontend/src/Makefile \ + server/chat/Makefile \ + server/chat/src/Makefile \ + server/position/Makefile \ + server/position/src/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.6&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.6&content-type=text/plain/index.html new file mode 100644 index 00000000..f77f0b94 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.6&content-type=text/plain/index.html @@ -0,0 +1,340 @@ +dnl ========================================================================== +dnl Configuration script for Snowballs +dnl ========================================================================== +dnl +dnl $Id: configure.in,v 1.6 2001/10/29 18:56:28 lecroart Exp $ +dnl + + +dnl ========================================================================== +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(client/src/client.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=2 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(snowballs, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ========================================================================== +dnl Checks Snowballs modules (Client / Server) to install / Disable + +SNO_SUBDIRS="" + +dnl Client +AC_ARG_ENABLE( client, + [ --disable-client disable compilation and install of Snowballs Client.], + [ AC_MSG_RESULT(disable Snowballs Client.) ], + [ SNO_SUBDIRS="$SNO_SUBDIRS client" + enable_client=yes ] ) + +dnl Server +AC_ARG_ENABLE( server, + [ --disable-server disable compilation and install of Snowballs Server.], + [ AC_MSG_RESULT(disable Snowballs Server.) ], + [ SNO_SUBDIRS="$SNO_SUBDIRS server" + enable_server=yes ] ) + +AC_SUBST(SNO_SUBDIRS) + + +dnl ========================================================================== +dnl Checks for programs. +dnl ========================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ========================================================================== +dnl Configure Settings +dnl ========================================================================== + +dnl Set the C++ compiler as the default compiler for the configure script +dnl compilation tests +AC_LANG_CPLUSPLUS + + +dnl ========================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ========================================================================== + + +dnl ========================================================================== +dnl Checks for header files. +dnl ========================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X ; then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X ; then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_client" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ========================================================================== +dnl STLPort + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport= path to the STLPort install directory. + e.g. /usr/local/stlport] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include= + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib= + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlport_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========================================================================== +dnl NeL + +dnl Check for NeL library files +AC_PATH_PROG(NEL_CONFIG, nel-config, no) + +if test "$NEL_CONFIG" = "no"; then + AC_MSG_ERROR([Cannot find nel-config: check your path. + NeL library is needed to compile Snowballs (www.nevrax.org).]) +else + NEL_CFLAGS=`nel-config --cflags` + + if test x"$enable_client" != x"yes" + then + NEL_LIBS=`nel-config --libs --without-ai --without-3d` + else + NEL_LIBS=`nel-config --libs --without-ai` + fi +fi + +AC_SUBST(NEL_CFLAGS) +AC_SUBST(NEL_LIBS) + +dnl Checking NeL instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${NEL_CFLAGS}" + + +dnl ========================================================================== +dnl FreeType 2 + +dnl Check for the FreeType 2 library files +AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + +if test "$FREETYPE_CONFIG" = "no" -a "$enable_client" = "yes" +then + AC_MSG_ERROR([Cannot find freetype-config: check your path. + FreeType 2 library is needed to compile Snowballs (freetype.sourceforge.net).]) +else + FREETYPE_CFLAGS=`freetype-config --cflags` + FREETYPE_LIBS=`freetype-config --libs` +fi + +AC_SUBST(FREETYPE_CFLAGS) +AC_SUBST(FREETYPE_LIBS) + +dnl Checking the FreeType 2 instalation +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}" + +AC_MSG_CHECKING(for FreeType 2 installation) +AC_EGREP_CPP( yo_freetype2, +[#include +#if FREETYPE_MAJOR == 2 + yo_freetype2 +#endif], +[ AC_MSG_RESULT(yes) ], + if test "$enable_client" = "yes" + then + AC_MSG_ERROR([Freetype 2 library is needed to compile Snowballs (freetype.sourceforge.net).]) + else + AC_MSG_RESULT(no) + fi +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========================================================================== +dnl Debug/optimized compilation mode + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi + +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi + +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [ with_debug=$withval ], + [ with_debug=no ] ) + +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ========================================================================== +dnl Checks for libraries. +dnl ========================================================================== + +dnl ========================================================================== +dnl STLPort + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile Snowballs (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + + +dnl ========================================================================== +dnl Checks for library functions. +dnl ========================================================================== + + +dnl ========================================================================== +dnl Output files to generate. +dnl ========================================================================== + +AC_OUTPUT( Makefile \ + client/Makefile \ + client/src/Makefile \ + server/Makefile \ + server/frontend/Makefile \ + server/frontend/src/Makefile \ + server/chat/Makefile \ + server/chat/src/Makefile \ + server/position/Makefile \ + server/position/src/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.9&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.9&content-type=text/plain/index.html new file mode 100644 index 00000000..3ecfe284 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/configure.in?rev=1.9&content-type=text/plain/index.html @@ -0,0 +1,165 @@ +dnl ==================================================================== +dnl Configuration script for Snowballs 2 +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.9 2002/01/10 14:33:20 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(client/src/client.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=2 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(snowballs, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks Snowballs modules (Client / Server) to install / Disable +dnl ==================================================================== + +SNO_SUBDIRS="" + +dnl Client +AC_ARG_ENABLE( client, + [ --disable-client disable compilation and install of Snowballs Client.], + [ AC_MSG_RESULT(disable Snowballs Client.) ], + [ SNO_SUBDIRS="$SNO_SUBDIRS client" + enable_client="yes" ] ) + +dnl Server +AC_ARG_ENABLE( server, + [ --disable-server disable compilation and install of Snowballs Server.], + [ AC_MSG_RESULT(disable Snowballs Server.) ], + [ SNO_SUBDIRS="$SNO_SUBDIRS server" + enable_server="yes" ] ) + +AC_SUBST(SNO_SUBDIRS) + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +dnl Set the C++ compiler as the default compiler for the configure script +dnl compilation tests +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl X11 + +AC_PATH_X + +if test ! "$no_x" = "yes" ; then + if test ! X"$x_libraries" = X + then + LIBS="$LIBS -L$x_libraries" + fi + if test ! X"$x_includes" = X + then + CXXFLAGS="$CXXFLAGS -I$x_includes" + fi +else + if test "$enable_client" = "yes" + then + AC_MSG_ERROR(X11 must be installed.) + fi +fi + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl NeL + +AM_PATH_NEL("yes", "yes", $enable_client, $enable_client, $enable_client, "no") + +CXXFLAGS="$CXXFLAGS ${NEL_CFLAGS}" +LIBS="$LIBS ${NEL_LIBS}" + + +dnl ==================================================================== +dnl FreeType 2 + +AM_PATH_FREETYPE($enable_client) + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + client/Makefile \ + client/src/Makefile \ + server/Makefile \ + server/frontend/Makefile \ + server/frontend/src/Makefile \ + server/chat/Makefile \ + server/chat/src/Makefile \ + server/position/Makefile \ + server/position/src/Makefile \ +) + + +dnl End of configure.in + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..37b3f4e4 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,95 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=..\nel\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "client"=.\client\client.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=..\nel\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.3&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.3&content-type=text/plain/index.html new file mode 100644 index 00000000..4987c001 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.3&content-type=text/plain/index.html @@ -0,0 +1,110 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=..\nel\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "client"=.\client\client.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=..\nel\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "pacs"=..\nel\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.4&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.4&content-type=text/plain/index.html new file mode 100644 index 00000000..339d190c --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.4&content-type=text/plain/index.html @@ -0,0 +1,113 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=..\nel\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "client"=.\client\client.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=..\nel\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "pacs"=..\nel\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.5&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.5&content-type=text/plain/index.html new file mode 100644 index 00000000..e7d1a762 --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.5&content-type=text/plain/index.html @@ -0,0 +1,155 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=..\nel\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "client"=.\client\client.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=..\nel\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "pacs"=..\nel\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound"=..\nel\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound_lowlevel"=..\nel\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.6 b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.6 new file mode 100644 index 00000000..f2189a3a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.dsw?rev=1.6 @@ -0,0 +1,209 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "3d"=..\nel\src\3d.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency +}}} + +############################################################################### + +Project: "chat"=.\server\chat\chat.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "client"=.\client\client.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name driver_opengl + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "driver_opengl"=..\nel\src\3d\driver\opengl\driver_opengl.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name 3d + End Project Dependency + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency + Begin Project Dependency + Project_Dep_Name pacs + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound + End Project Dependency + Begin Project Dependency + Project_Dep_Name sound_lowlevel + End Project Dependency +}}} + +############################################################################### + +Project: "frontend"=.\server\frontend\frontend.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "misc"=..\nel\src\misc.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "net"=..\nel\src\net.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "pacs"=..\nel\src\pacs.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "position"=.\server\position\position.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name misc + End Project Dependency + Begin Project Dependency + Project_Dep_Name net + End Project Dependency +}}} + +############################################################################### + +Project: "sound"=..\nel\src\sound.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "sound_lowlevel"=..\nel\src\sound\driver\sound_lowlevel.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.sln?rev=1.1&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.sln?rev=1.1&content-type=text/plain/index.html new file mode 100644 index 00000000..5221742a --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.sln?rev=1.1&content-type=text/plain/index.html @@ -0,0 +1,145 @@ +Microsoft Visual Studio Solution File, Format Version 7.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "3d", "..\nel\src\3d.vcproj", "{FC2E3577-6B2E-4444-8AEF-547D64112B0A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chat", "server\chat\chat.vcproj", "{718E7FD6-14D8-4D17-9131-A7048DAF15D4}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "client", "client\client.vcproj", "{AD3DD912-E6C4-46C4-9984-CE836AECB258}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "driver_opengl", "..\nel\src\3d\driver\opengl\driver_opengl.vcproj", "{80B2F98D-8E16-4EE1-B467-5EE95151F94D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "frontend", "server\frontend\frontend.vcproj", "{4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "misc", "..\nel\src\misc.vcproj", "{492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "net", "..\nel\src\net.vcproj", "{9E18D500-68D9-4340-87F1-8BFE32F1F72A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pacs", "..\nel\src\pacs.vcproj", "{5464B085-A661-4B88-B474-F73C1FA660B5}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "position", "server\position\position.vcproj", "{5165876F-5B75-4FAA-8550-16068ACA12C6}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound", "..\nel\src\sound.vcproj", "{C8135064-4977-44C0-8489-5C00B83D410E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound_lowlevel", "..\nel\src\sound\driver\sound_lowlevel.vcproj", "{C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}" +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + ConfigName.0 = Debug + ConfigName.1 = DebugFast + ConfigName.2 = Release + ConfigName.3 = ReleaseDebug + EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.0 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.0 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.1 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.0 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.1 = {5464B085-A661-4B88-B474-F73C1FA660B5} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.2 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.3 = {80B2F98D-8E16-4EE1-B467-5EE95151F94D} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.4 = {FC2E3577-6B2E-4444-8AEF-547D64112B0A} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.0 = {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.1 = {C8135064-4977-44C0-8489-5C00B83D410E} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.2 = {5464B085-A661-4B88-B474-F73C1FA660B5} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.3 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.4 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.5 = {FC2E3577-6B2E-4444-8AEF-547D64112B0A} + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.0 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.1 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {5165876F-5B75-4FAA-8550-16068ACA12C6}.0 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {5165876F-5B75-4FAA-8550-16068ACA12C6}.1 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.Debug.ActiveCfg = Debug|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.Debug.Build.0 = Debug|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.DebugFast.ActiveCfg = DebugFast|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.DebugFast.Build.0 = DebugFast|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.Release.ActiveCfg = Release|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.Release.Build.0 = Release|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.Debug.ActiveCfg = Debug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.Debug.Build.0 = Debug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.DebugFast.ActiveCfg = Debug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.DebugFast.Build.0 = Debug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.Release.ActiveCfg = Release|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.Release.Build.0 = Release|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.Debug.ActiveCfg = Debug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.Debug.Build.0 = Debug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.DebugFast.ActiveCfg = Debug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.DebugFast.Build.0 = Debug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.Release.ActiveCfg = Release|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.Release.Build.0 = Release|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.Debug.ActiveCfg = Debug|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.Debug.Build.0 = Debug|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.DebugFast.ActiveCfg = DebugFast|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.DebugFast.Build.0 = DebugFast|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.Release.ActiveCfg = Release|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.Release.Build.0 = Release|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.Debug.ActiveCfg = Debug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.Debug.Build.0 = Debug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.DebugFast.ActiveCfg = Debug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.DebugFast.Build.0 = Debug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.Release.ActiveCfg = Release|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.Release.Build.0 = Release|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.Debug.ActiveCfg = Debug|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.Debug.Build.0 = Debug|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.DebugFast.ActiveCfg = DebugFast|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.DebugFast.Build.0 = DebugFast|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.Release.ActiveCfg = Release|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.Release.Build.0 = Release|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.Debug.ActiveCfg = Debug|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.Debug.Build.0 = Debug|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.DebugFast.ActiveCfg = DebugFast|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.DebugFast.Build.0 = DebugFast|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.Release.ActiveCfg = Release|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.Release.Build.0 = Release|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.Debug.ActiveCfg = Debug|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.Debug.Build.0 = Debug|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.DebugFast.ActiveCfg = DebugFast|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.DebugFast.Build.0 = DebugFast|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.Release.ActiveCfg = Release|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.Release.Build.0 = Release|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.Debug.ActiveCfg = Debug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.Debug.Build.0 = Debug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.DebugFast.ActiveCfg = Debug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.DebugFast.Build.0 = Debug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.Release.ActiveCfg = Release|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.Release.Build.0 = Release|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.Debug.ActiveCfg = Debug|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.Debug.Build.0 = Debug|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.DebugFast.ActiveCfg = DebugFast|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.DebugFast.Build.0 = DebugFast|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.Release.ActiveCfg = Release|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.Release.Build.0 = Release|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.Debug.ActiveCfg = Debug|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.Debug.Build.0 = Debug|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.DebugFast.ActiveCfg = DebugFast|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.DebugFast.Build.0 = DebugFast|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.Release.ActiveCfg = Release|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.Release.Build.0 = Release|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.sln?rev=1.2&content-type=text/plain/index.html b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.sln?rev=1.2&content-type=text/plain/index.html new file mode 100644 index 00000000..f63d560d --- /dev/null +++ b/cvs/cvsweb.cgi/~checkout~/code/snowballs2/snowballs2.sln?rev=1.2&content-type=text/plain/index.html @@ -0,0 +1,144 @@ +Microsoft Visual Studio Solution File, Format Version 7.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "3d", "..\nel\src\3d.vcproj", "{FC2E3577-6B2E-4444-8AEF-547D64112B0A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chat", "server\chat\chat.vcproj", "{718E7FD6-14D8-4D17-9131-A7048DAF15D4}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "client", "client\client.vcproj", "{AD3DD912-E6C4-46C4-9984-CE836AECB258}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "driver_opengl", "..\nel\src\3d\driver\opengl\driver_opengl.vcproj", "{80B2F98D-8E16-4EE1-B467-5EE95151F94D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "frontend", "server\frontend\frontend.vcproj", "{4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "misc", "..\nel\src\misc.vcproj", "{492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "net", "..\nel\src\net.vcproj", "{9E18D500-68D9-4340-87F1-8BFE32F1F72A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pacs", "..\nel\src\pacs.vcproj", "{5464B085-A661-4B88-B474-F73C1FA660B5}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "position", "server\position\position.vcproj", "{5165876F-5B75-4FAA-8550-16068ACA12C6}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound", "..\nel\src\sound.vcproj", "{C8135064-4977-44C0-8489-5C00B83D410E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound_lowlevel", "..\nel\src\sound\driver\sound_lowlevel.vcproj", "{C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}" +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + ConfigName.0 = Debug + ConfigName.1 = DebugFast + ConfigName.2 = Release + ConfigName.3 = ReleaseDebug + EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.0 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.1 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.0 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.1 = {5464B085-A661-4B88-B474-F73C1FA660B5} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.2 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.3 = {80B2F98D-8E16-4EE1-B467-5EE95151F94D} + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.4 = {FC2E3577-6B2E-4444-8AEF-547D64112B0A} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.0 = {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.1 = {C8135064-4977-44C0-8489-5C00B83D410E} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.2 = {5464B085-A661-4B88-B474-F73C1FA660B5} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.3 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.4 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.5 = {FC2E3577-6B2E-4444-8AEF-547D64112B0A} + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.0 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.1 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + {5165876F-5B75-4FAA-8550-16068ACA12C6}.0 = {9E18D500-68D9-4340-87F1-8BFE32F1F72A} + {5165876F-5B75-4FAA-8550-16068ACA12C6}.1 = {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E} + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.Debug.ActiveCfg = Debug|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.Debug.Build.0 = Debug|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.DebugFast.ActiveCfg = DebugFast|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.DebugFast.Build.0 = DebugFast|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.Release.ActiveCfg = Release|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.Release.Build.0 = Release|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {FC2E3577-6B2E-4444-8AEF-547D64112B0A}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.Debug.ActiveCfg = Debug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.Debug.Build.0 = Debug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.DebugFast.ActiveCfg = Debug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.DebugFast.Build.0 = Debug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.Release.ActiveCfg = Release|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.Release.Build.0 = Release|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {718E7FD6-14D8-4D17-9131-A7048DAF15D4}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.Debug.ActiveCfg = Debug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.Debug.Build.0 = Debug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.DebugFast.ActiveCfg = Debug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.DebugFast.Build.0 = Debug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.Release.ActiveCfg = Release|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.Release.Build.0 = Release|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {AD3DD912-E6C4-46C4-9984-CE836AECB258}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.Debug.ActiveCfg = Debug|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.Debug.Build.0 = Debug|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.DebugFast.ActiveCfg = DebugFast|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.DebugFast.Build.0 = DebugFast|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.Release.ActiveCfg = Release|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.Release.Build.0 = Release|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {80B2F98D-8E16-4EE1-B467-5EE95151F94D}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.Debug.ActiveCfg = Debug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.Debug.Build.0 = Debug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.DebugFast.ActiveCfg = Debug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.DebugFast.Build.0 = Debug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.Release.ActiveCfg = Release|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.Release.Build.0 = Release|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {4ECB9DE0-19D6-44F9-A924-BAEEEF00AE3E}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.Debug.ActiveCfg = Debug|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.Debug.Build.0 = Debug|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.DebugFast.ActiveCfg = DebugFast|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.DebugFast.Build.0 = DebugFast|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.Release.ActiveCfg = Release|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.Release.Build.0 = Release|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {492F1B3C-12C3-49CA-9D1C-ADCA0CCF855E}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.Debug.ActiveCfg = Debug|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.Debug.Build.0 = Debug|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.DebugFast.ActiveCfg = DebugFast|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.DebugFast.Build.0 = DebugFast|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.Release.ActiveCfg = Release|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.Release.Build.0 = Release|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {9E18D500-68D9-4340-87F1-8BFE32F1F72A}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.Debug.ActiveCfg = Debug|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.Debug.Build.0 = Debug|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.DebugFast.ActiveCfg = DebugFast|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.DebugFast.Build.0 = DebugFast|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.Release.ActiveCfg = Release|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.Release.Build.0 = Release|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {5464B085-A661-4B88-B474-F73C1FA660B5}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.Debug.ActiveCfg = Debug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.Debug.Build.0 = Debug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.DebugFast.ActiveCfg = Debug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.DebugFast.Build.0 = Debug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.Release.ActiveCfg = Release|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.Release.Build.0 = Release|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {5165876F-5B75-4FAA-8550-16068ACA12C6}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.Debug.ActiveCfg = Debug|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.Debug.Build.0 = Debug|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.DebugFast.ActiveCfg = DebugFast|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.DebugFast.Build.0 = DebugFast|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.Release.ActiveCfg = Release|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.Release.Build.0 = Release|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {C8135064-4977-44C0-8489-5C00B83D410E}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.Debug.ActiveCfg = Debug|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.Debug.Build.0 = Debug|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.DebugFast.ActiveCfg = DebugFast|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.DebugFast.Build.0 = DebugFast|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.Release.ActiveCfg = Release|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.Release.Build.0 = Release|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.ReleaseDebug.ActiveCfg = ReleaseDebug|Win32 + {C49D08FA-F6B6-41E2-AF02-992AC2EAEB1F}.ReleaseDebug.Build.0 = ReleaseDebug|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal -- cgit v1.2.1