ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/configure.ac
(Generate patch)

Comparing deliantra/server/configure.ac (file contents):
Revision 1.174 by root, Tue May 4 21:45:42 2010 UTC vs.
Revision 1.182 by root, Wed Oct 31 15:09:13 2012 UTC

1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.,
2 2
3AC_INIT([deliantra-server], [2.93], [support@deliantra.net]) 3AC_INIT([deliantra-server], [3.0], [support@deliantra.net])
4AC_CONFIG_AUX_DIR(utils) 4AC_CONFIG_AUX_DIR(utils)
5AC_CONFIG_SRCDIR([server/cfperl.xs]) 5AC_CONFIG_SRCDIR([server/cfperl.xs])
6AM_INIT_AUTOMAKE 6AM_INIT_AUTOMAKE
7AM_CONFIG_HEADER(include/autoconf.h) 7AM_CONFIG_HEADER(include/autoconf.h)
8 8
28AC_PATH_PROG(PNGNQ, pngnq) 28AC_PATH_PROG(PNGNQ, pngnq)
29if test -z "$PNGNQ"; then 29if test -z "$PNGNQ"; then
30 AC_MSG_ERROR([png neuquant (pngnq) must be in your PATH, check the README]) 30 AC_MSG_ERROR([png neuquant (pngnq) must be in your PATH, check the README])
31fi 31fi
32 32
33dnl AC_PATH_PROG(IDENTIFY, identify) 33AC_PATH_PROG(IDENTIFY, identify)
34dnl if test -z "$IDENTIFY"; then 34if test -z "$IDENTIFY"; then
35dnl AC_MSG_ERROR([ImageMagick 'identify' must be in your PATH, check the README]) 35 AC_MSG_ERROR([ImageMagick 'identify' must be in your PATH, check the README])
36dnl fi 36fi
37 37
38AC_PATH_PROG(CONVERT, convert) 38AC_PATH_PROG(CONVERT, convert)
39if test -z "$CONVERT"; then 39if test -z "$CONVERT"; then
40 AC_MSG_ERROR([ImageMagick 'convert' must be in your PATH, check the README]) 40 AC_MSG_ERROR([ImageMagick 'convert' must be in your PATH, check the README])
41fi 41fi
42 42
43AC_PATH_PROG(PERL, perl5.10.1) 43AC_PATH_PROG(PERL, perl5.10.1)
44if test -z "$PERL"; then 44if test -z "$PERL"; then
45 AC_PATH_PROG(PERL, perl5.10.0) 45 AC_PATH_PROG(PERL, perl)
46 if test -z "$PERL"; then 46 if test -z "$PERL"; then
47 AC_PATH_PROG(PERL, perl)
48 if test -z "$PERL"; then
49 AC_MSG_ERROR([perl 5.10 or higher must be in your PATH, check the README]) 47 AC_MSG_ERROR([perl 5.10.1 or higher must be in your PATH, check the README])
50 fi
51 fi 48 fi
52fi 49fi
53 50
54for module_vers in \ 51for module_vers in \
55 "common::sense 3.2" \ 52 "common::sense 3.3" \
56 "AnyEvent 5.2" \ 53 "AnyEvent 7.0" \
57 "AnyEvent::AIO 0" \ 54 "AnyEvent::AIO 0" \
58 "AnyEvent::BDB 0" \ 55 "AnyEvent::BDB 0" \
59 "BDB 1.8" \ 56 "BDB 1.8" \
60 "Compress::LZF 3.41" \ 57 "Compress::LZF 3.41" \
61 "Coro 5.13" \ 58 "Coro 5.372" \
62 "Coro::EV 0" \ 59 "Coro::EV 0" \
63 "Deliantra 1.24" \ 60 "Deliantra 1.24" \
64 "Digest::MD5 2.0" \ 61 "Digest::MD5 2.0" \
65 "EV 3.41" \ 62 "EV 4.00" \
66 "Guard 0.5" \ 63 "Guard 0.5" \
67 "IO::AIO 3.3" \ 64 "IO::AIO 3.3" \
68 "JSON::XS 2.01" \ 65 "JSON::XS 2.01" \
69 "AnyEvent::IRC 0.6" \ 66 "AnyEvent::IRC 0.6" \
70 "Pod::POM 0.17" \ 67 "Pod::POM 0.27" \
71 "Safe::Hole 0.10" \ 68 "Safe::Hole 0.10" \
72 "Storable 2.0" \ 69 "Storable 2.0" \
73 "Time::HiRes 1.0" \ 70 "Time::HiRes 1.0" \
74 "URI 1.35" \ 71 "URI 1.35" \
75 "YAML::XS 0.32" \ 72 "YAML::XS 0.32" \
98 95
99AC_CHECK_HEADER(pthread.h,[],[AC_MSG_ERROR([POSIX thread support is required.])]) 96AC_CHECK_HEADER(pthread.h,[],[AC_MSG_ERROR([POSIX thread support is required.])])
100 97
101AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 98AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
102 99
100AC_MSG_CHECKING(blitz++ >= 0.9)
101if $PKG_CONFIG blitz --atleast-version 0.9; then
102 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG blitz --cflags`"
103 LIBS="$LIBS `$PKG_CONFIG blitz --libs`"
104 AC_MSG_RESULT(ok)
105else
106 AC_MSG_ERROR(no)
107fi
108
103AC_MSG_CHECKING(glib >= 2.10) 109AC_MSG_CHECKING(glib >= 2.10)
104if $PKG_CONFIG glib-2.0 --atleast-version 2.10; then 110if $PKG_CONFIG glib-2.0 --atleast-version 2.10; then
105 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG glib-2.0 --cflags`" 111 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG glib-2.0 --cflags`"
106 LIBS="$LIBS `$PKG_CONFIG glib-2.0 --libs`" 112 LIBS="$LIBS `$PKG_CONFIG glib-2.0 --libs`"
107 AC_MSG_RESULT(ok) 113 AC_MSG_RESULT(ok)
126dnl else 132dnl else
127dnl AC_MSG_ERROR(no) 133dnl AC_MSG_ERROR(no)
128dnl fi 134dnl fi
129 135
130AC_MSG_CHECKING(for $PERL suitability) 136AC_MSG_CHECKING(for $PERL suitability)
131if $PERL -MExtUtils::Embed -e "use 5.10.0" >/dev/null 2>&1; then 137if $PERL -MExtUtils::Embed -e "use 5.10.1" >/dev/null 2>&1; then
132 save_CXXFLAGS="$CXXFLAGS" 138 save_CXXFLAGS="$CXXFLAGS"
133 save_LIBS="$LIBS" 139 save_LIBS="$LIBS"
134 xPERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 140 xPERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
135 xPERLFLAGS="$xPERLFLAGS `$PERL -MEV::MakeMaker -e 'print +{&EV::MakeMaker::ev_args}->{INC}'`" 141 xPERLFLAGS="$xPERLFLAGS `$PERL -MEV::MakeMaker -e 'print +{&EV::MakeMaker::ev_args}->{INC}'`"
136 xPERLFLAGS="$xPERLFLAGS `$PERL -MCoro::MakeMaker -e 'print +{&Coro::MakeMaker::coro_args}->{INC}'`" 142 xPERLFLAGS="$xPERLFLAGS `$PERL -MCoro::MakeMaker -e 'print +{&Coro::MakeMaker::coro_args}->{INC}'`"
156 CPPFLAGS="$CPPFLAGS $PERLFLAGS" 162 CPPFLAGS="$CPPFLAGS $PERLFLAGS"
157 else 163 else
158 AC_MSG_ERROR([no, unable to link test program]) 164 AC_MSG_ERROR([no, unable to link test program])
159 fi 165 fi
160else 166else
161 AC_MSG_ERROR([no working perl found, or perl not version >= 5.10]) 167 AC_MSG_ERROR([no working perl found, or perl not version >= 5.10.1])
162fi 168fi
163AC_SUBST(PERLLIB) 169AC_SUBST(PERLLIB)
164AC_SUBST(PERLFLAGS) 170AC_SUBST(PERLFLAGS)
165AC_SUBST(PERLPRIVLIBEXP) 171AC_SUBST(PERLPRIVLIBEXP)
166AC_SUBST(PERL) 172AC_SUBST(PERL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines