/[svn]/ircd-hybrid/branches/8.1.x/configure.ac
ViewVC logotype

Contents of /ircd-hybrid/branches/8.1.x/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3033 - (show annotations)
Tue Feb 25 11:53:16 2014 UTC (8 years, 5 months ago) by michael
File size: 3746 byte(s)
- Revved patchlevel
-- folgenden Zeilen werden ignoriert --

M    configure
M    include/patchlevel.h
M    configure.ac

1 # Inspired by work Copyright (C) 2006 Luca Filipozzi
2 # vim: set fdm=marker ts=2 sw=2 et:
3
4 AC_REVISION([$Id$])
5
6 AC_PREREQ(2.69)
7 AC_INIT([ircd-hybrid], [8.1.14], [bugs@ircd-hybrid.org])
8 AM_INIT_AUTOMAKE(1.13.1 subdir-objects)
9 AM_MAINTAINER_MODE
10 AC_CONFIG_MACRO_DIR([m4])
11 AC_CONFIG_HEADER(config.h)
12 AC_CONFIG_SRCDIR(src/ircd.c)
13
14 # Checks for programs.
15 AC_PROG_CC_C99
16 AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
17 [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
18 AC_PROG_YACC
19 AM_PROG_LEX
20 AC_PROG_INSTALL
21
22 # Initializing libtool.
23 LT_CONFIG_LTDL_DIR([libltdl])
24 LT_INIT([dlopen disable-static])
25 LTDL_INIT([recursive convenience])
26 LIBTOOL="$LIBTOOL --silent"
27
28 # Checks for libraries.
29 GCC_STACK_PROTECT_CC
30
31 AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing])
32
33 AX_CHECK_LIB_IPV4
34 AX_CHECK_LIB_IPV6
35
36 # Checks for typedefs, structures, and compiler characteristics.
37 AC_C_BIGENDIAN
38
39 # Checks for library functions.
40 AC_CHECK_FUNCS_ONCE(strtok_r \
41 usleep \
42 strlcat \
43 strlcpy)
44
45 # Checks for header files.
46 AC_CHECK_HEADERS_ONCE(crypt.h \
47 sys/resource.h \
48 sys/param.h \
49 types.h \
50 socket.h \
51 sys/wait.h \
52 wait.h)
53
54 AC_SEARCH_LIBS(crypt, crypt)
55
56 AC_ARG_ENABLE(libgeoip,
57 [AS_HELP_STRING([--disable-libgeoip],[Disable GeoIP support])], [],
58 [AC_CHECK_HEADER(GeoIP.h,
59 [AC_SEARCH_LIBS(GeoIP_id_by_ipnum_v6_gl, GeoIP,
60 [AC_DEFINE(HAVE_LIBGEOIP, 1, [Define to 1 if libGeoIP (-lGeoIP) is available.])])])], [])
61
62 AX_CHECK_OPENSSL
63
64 AC_ARG_ENABLE(assert, AS_HELP_STRING([--enable-assert],
65 [Enable assert() statements]),
66 [assert=$enableval], [assert=no])
67
68 AS_IF([test "$assert" = "no"],
69 [AC_DEFINE(NDEBUG, 1, [Define to disable assert() statements.])])
70
71 AC_DEFINE([NICKNAMEHISTORYLENGTH], 32768, [Size of the WHOWAS array.])
72 AC_DEFINE([MP_CHUNK_SIZE_CHANNEL], 1024*1024, [Size of the channel mempool chunk.])
73 AC_DEFINE([MP_CHUNK_SIZE_MEMBER], 2048*1024, [Size of the channel-member mempool chunk.])
74 AC_DEFINE([MP_CHUNK_SIZE_BAN], 1024*1024, [Size of the ban mempool chunk.])
75 AC_DEFINE([MP_CHUNK_SIZE_CLIENT], 1024*1024, [Size of the client mempool chunk.])
76 AC_DEFINE([MP_CHUNK_SIZE_LCLIENT], 512*1024, [Size of the local client mempool chunk.])
77 AC_DEFINE([MP_CHUNK_SIZE_DNODE], 32*1024, [Size of the dlink_node mempool chunk.])
78 AC_DEFINE([MP_CHUNK_SIZE_DBUF], 512*1024, [Size of the dbuf mempool chunk.])
79 AC_DEFINE([MP_CHUNK_SIZE_AUTH], 128*1024, [Size of the auth mempool chunk.])
80 AC_DEFINE([MP_CHUNK_SIZE_DNS], 64*1024, [Size of the dns mempool chunk.])
81 AC_DEFINE([MP_CHUNK_SIZE_WATCH], 8*1024, [Size of the watch mempool chunk.])
82 AC_DEFINE([MP_CHUNK_SIZE_NAMEHOST], 64*1024, [Size of the namehost mempool chunk.])
83 AC_DEFINE([MP_CHUNK_SIZE_USERHOST], 128*1024, [Size of the userhost mempool chunk.])
84 AC_DEFINE([MP_CHUNK_SIZE_IP_ENTRY], 128*1024, [Size of the ip_entry mempool chunk.])
85
86 # Argument processing.
87 AX_ARG_ENABLE_IOLOOP_MECHANISM
88 AX_ARG_ENABLE_HALFOPS
89 AX_ARG_ENABLE_DEBUGGING
90 AX_ARG_ENABLE_WARNINGS
91
92 AC_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.])
93 AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.])
94 AC_DEFINE_DIR([LIBDIR],[libdir],[Set to libdir.])
95 AC_DEFINE_DIR([DATADIR],[datadir],[Set to datadir.])
96 AC_DEFINE_DIR([LOCALSTATEDIR],[localstatedir],[Set to localstatedir.])
97
98 AC_CONFIG_FILES( \
99 Makefile \
100 src/Makefile \
101 libltdl/Makefile \
102 modules/Makefile \
103 modules/core/Makefile \
104 doc/Makefile \
105 help/Makefile \
106 tools/Makefile)
107
108 AC_OUTPUT

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28