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.194 by root, Thu Nov 22 20:13:33 2018 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.1], [support@deliantra.net])
4dnl AC_CONFIG_MACRO_DIR([m4])
4AC_CONFIG_AUX_DIR(utils) 5AC_CONFIG_AUX_DIR(utils)
5AC_CONFIG_SRCDIR([server/cfperl.xs]) 6AC_CONFIG_SRCDIR([server/cfperl.xs])
6AM_INIT_AUTOMAKE 7AM_INIT_AUTOMAKE([silent-rules subdir-objects foreign no-dist-gzip dist-xz])
7AM_CONFIG_HEADER(include/autoconf.h) 8AM_CONFIG_HEADER(include/autoconf.h)
8 9
9AM_MAINTAINER_MODE 10AM_MAINTAINER_MODE
10 11
11AC_PREFIX_DEFAULT(/usr/games/deliantra) 12AC_PREFIX_DEFAULT(/usr/games/deliantra)
28AC_PATH_PROG(PNGNQ, pngnq) 29AC_PATH_PROG(PNGNQ, pngnq)
29if test -z "$PNGNQ"; then 30if test -z "$PNGNQ"; then
30 AC_MSG_ERROR([png neuquant (pngnq) must be in your PATH, check the README]) 31 AC_MSG_ERROR([png neuquant (pngnq) must be in your PATH, check the README])
31fi 32fi
32 33
33dnl AC_PATH_PROG(IDENTIFY, identify) 34AC_PATH_PROG(IDENTIFY, identify)
34dnl if test -z "$IDENTIFY"; then 35if test -z "$IDENTIFY"; then
35dnl AC_MSG_ERROR([ImageMagick 'identify' must be in your PATH, check the README]) 36 AC_MSG_ERROR([ImageMagick 'identify' must be in your PATH, check the README])
36dnl fi 37fi
37 38
38AC_PATH_PROG(CONVERT, convert) 39AC_PATH_PROG(CONVERT, convert)
39if test -z "$CONVERT"; then 40if test -z "$CONVERT"; then
40 AC_MSG_ERROR([ImageMagick 'convert' must be in your PATH, check the README]) 41 AC_MSG_ERROR([ImageMagick 'convert' must be in your PATH, check the README])
41fi 42fi
42 43
43AC_PATH_PROG(PERL, perl5.10.1) 44AC_PATH_PROG(PERL, perl5.10.1)
44if test -z "$PERL"; then 45if test -z "$PERL"; then
45 AC_PATH_PROG(PERL, perl5.10.0) 46 AC_PATH_PROG(PERL, perl)
46 if test -z "$PERL"; then 47 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]) 48 AC_MSG_ERROR([perl 5.10.1 or higher must be in your PATH, check the README])
50 fi
51 fi 49 fi
52fi 50fi
53 51
54for module_vers in \ 52for module_vers in \
55 "common::sense 3.2" \ 53 "common::sense 3.3" \
56 "AnyEvent 5.2" \ 54 "AnyEvent 7.0" \
57 "AnyEvent::AIO 0" \ 55 "AnyEvent::AIO 0" \
58 "AnyEvent::BDB 0" \ 56 "AnyEvent::BDB 0" \
59 "BDB 1.8" \ 57 "BDB 1.8" \
60 "Compress::LZF 3.41" \ 58 "Compress::LZF 3.41" \
61 "Coro 5.13" \ 59 "Coro 6" \
62 "Coro::EV 0" \ 60 "Coro::EV 0" \
63 "Deliantra 1.24" \ 61 "Deliantra 2.0" \
64 "Digest::MD5 2.0" \ 62 "Digest::MD5 2.0" \
65 "EV 3.41" \ 63 "EV 4" \
66 "Guard 0.5" \ 64 "Guard 1" \
67 "IO::AIO 3.3" \ 65 "IO::AIO 4" \
68 "JSON::XS 2.01" \ 66 "JSON::XS 2.01" \
69 "AnyEvent::IRC 0.6" \ 67 "AnyEvent::IRC 0.6" \
70 "Pod::POM 0.17" \ 68 "Pod::POM 0.27" \
71 "Safe::Hole 0.10" \ 69 "Safe::Hole 0.10" \
72 "Storable 2.0" \ 70 "Storable 2.0" \
73 "Time::HiRes 1.0" \
74 "URI 1.35" \ 71 "URI 1.35" \
75 "YAML::XS 0.32" \ 72 "YAML::XS 0.32" \
73 "CBOR::XS 1.5" \
76; do 74; do
77 set -- $module_vers 75 set -- $module_vers
78 module=$1 76 module=$1
79 minvers=$2 77 minvers=$2
80 AC_MSG_CHECKING(for $module perl module version $minvers or higher) 78 AC_MSG_CHECKING(for $module perl module version $minvers or higher)
92 90
93AC_LANG(C++) 91AC_LANG(C++)
94AC_PROG_CXX 92AC_PROG_CXX
95AC_PROG_CPP 93AC_PROG_CPP
96 94
95AX_CXX_COMPILE_STDCXX(14, [noext], [mandatory])
96
97AX_CHECK_COMPILE_FLAG(-Wno-unused-result,[CXXFLAGS="$CXXFLAGS -Wno-unused-result"])
98AX_CHECK_COMPILE_FLAG(-Wno-narrowing,[CXXFLAGS="$CXXFLAGS -Wno-narrowing"])
99
97AC_CHECK_HEADER(tr1/unordered_map,[],[AC_MSG_ERROR([Your compiler must support the Library Technical Report 1 extensions.])]) 100AC_CHECK_HEADER(unordered_map,[],[AC_MSG_ERROR([Your compiler must support C++11 headers.])])
98 101
99AC_CHECK_HEADER(pthread.h,[],[AC_MSG_ERROR([POSIX thread support is required.])]) 102AC_CHECK_HEADER(pthread.h,[],[AC_MSG_ERROR([POSIX thread support is required.])])
100 103
101AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 104AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
102 105
106AC_MSG_CHECKING(blitz++ >= 0.10)
107if $PKG_CONFIG blitz --atleast-version 0.10; then
108 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG blitz --cflags`"
109 LIBS="$LIBS `$PKG_CONFIG blitz --libs`"
110 AC_MSG_RESULT(ok)
111else
112 AC_MSG_ERROR(no)
113fi
114
103AC_MSG_CHECKING(glib >= 2.10) 115AC_MSG_CHECKING(glib >= 2.32)
104if $PKG_CONFIG glib-2.0 --atleast-version 2.10; then 116if $PKG_CONFIG glib-2.0 --atleast-version 2.10; then
105 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG glib-2.0 --cflags`" 117 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG glib-2.0 --cflags`"
106 LIBS="$LIBS `$PKG_CONFIG glib-2.0 --libs`" 118 LIBS="$LIBS `$PKG_CONFIG glib-2.0 --libs`"
107 AC_MSG_RESULT(ok) 119 AC_MSG_RESULT(ok)
108else 120else
126dnl else 138dnl else
127dnl AC_MSG_ERROR(no) 139dnl AC_MSG_ERROR(no)
128dnl fi 140dnl fi
129 141
130AC_MSG_CHECKING(for $PERL suitability) 142AC_MSG_CHECKING(for $PERL suitability)
131if $PERL -MExtUtils::Embed -e "use 5.10.0" >/dev/null 2>&1; then 143if $PERL -MExtUtils::Embed -e "use 5.10.1" >/dev/null 2>&1; then
132 save_CXXFLAGS="$CXXFLAGS" 144 save_CXXFLAGS="$CXXFLAGS"
133 save_LIBS="$LIBS" 145 save_LIBS="$LIBS"
134 xPERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 146 xPERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
135 xPERLFLAGS="$xPERLFLAGS `$PERL -MEV::MakeMaker -e 'print +{&EV::MakeMaker::ev_args}->{INC}'`" 147 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}'`" 148 xPERLFLAGS="$xPERLFLAGS `$PERL -MCoro::MakeMaker -e 'print +{&Coro::MakeMaker::coro_args}->{INC}'`"
156 CPPFLAGS="$CPPFLAGS $PERLFLAGS" 168 CPPFLAGS="$CPPFLAGS $PERLFLAGS"
157 else 169 else
158 AC_MSG_ERROR([no, unable to link test program]) 170 AC_MSG_ERROR([no, unable to link test program])
159 fi 171 fi
160else 172else
161 AC_MSG_ERROR([no working perl found, or perl not version >= 5.10]) 173 AC_MSG_ERROR([no working perl found, or perl not version >= 5.10.1])
162fi 174fi
163AC_SUBST(PERLLIB) 175AC_SUBST(PERLLIB)
164AC_SUBST(PERLFLAGS) 176AC_SUBST(PERLFLAGS)
165AC_SUBST(PERLPRIVLIBEXP) 177AC_SUBST(PERLPRIVLIBEXP)
166AC_SUBST(PERL) 178AC_SUBST(PERL)
211]) 223])
212 224
213AC_SUBST(pkgstatedir,$localstatedir/$PACKAGE) 225AC_SUBST(pkgstatedir,$localstatedir/$PACKAGE)
214AC_SUBST(pkgconfdir,$sysconfdir/$PACKAGE) 226AC_SUBST(pkgconfdir,$sysconfdir/$PACKAGE)
215 227
216AC_OUTPUT([Makefile 228AC_OUTPUT([Makefile lib/Makefile utils/cfutil])
217 include/Makefile lib/Makefile pod/Makefile random_maps/Makefile socket/Makefile
218 server/Makefile utils/Makefile ext/Makefile doc/Makefile
219 common/Makefile utils/cfutil
220])
221 229

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines