ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure.ac
Revision: 3725
Committed: Sat May 31 16:29:38 2014 UTC (9 years, 9 months ago) by michael
Content type: application/pkix-attr-cert
File size: 3728 byte(s)
Log Message:
- Halfops are now part of the ircd core and enabled by default

File Contents

# User Rev Content
1 stu 908 # Inspired by work Copyright (C) 2006 Luca Filipozzi
2     # vim: set fdm=marker ts=2 sw=2 et:
3 adx 30
4 michael 953 AC_REVISION([$Id$])
5    
6 michael 1373 AC_PREREQ(2.69)
7 michael 3644 AC_INIT([ircd-hybrid], [8.2.0beta3], [bugs@ircd-hybrid.org])
8 michael 2347 AM_INIT_AUTOMAKE(1.13.1 subdir-objects)
9 stu 908 AM_MAINTAINER_MODE
10 michael 2480 AC_CONFIG_MACRO_DIR([m4])
11 michael 912 AC_CONFIG_HEADER(config.h)
12     AC_CONFIG_SRCDIR(src/ircd.c)
13 adx 30
14 stu 908 # Checks for programs.
15 michael 1010 AC_PROG_CC_C99
16     AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
17 michael 1348 [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
18 michael 912 AC_PROG_YACC
19     AM_PROG_LEX
20 stu 908 AC_PROG_INSTALL
21 michael 945
22 michael 1015 # Initializing libtool.
23 michael 1084 LT_CONFIG_LTDL_DIR([libltdl])
24 michael 977 LT_INIT([dlopen disable-static])
25 michael 1092 LTDL_INIT([recursive convenience])
26 michael 1053 LIBTOOL="$LIBTOOL --silent"
27 adx 30
28 stu 908 # Checks for libraries.
29 michael 2480 GCC_STACK_PROTECT_CC
30    
31 michael 2594 AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing])
32    
33 stu 908 AX_CHECK_LIB_IPV4
34     AX_CHECK_LIB_IPV6
35 adx 30
36 stu 908 # Checks for typedefs, structures, and compiler characteristics.
37 adx 30 AC_C_BIGENDIAN
38    
39 stu 908 # Checks for library functions.
40 michael 1664 AC_CHECK_FUNCS_ONCE(strtok_r \
41 michael 1010 usleep \
42     strlcat \
43 michael 1329 strlcpy)
44 adx 30
45 michael 923 # Checks for header files.
46 michael 912 AC_CHECK_HEADERS_ONCE(crypt.h \
47     sys/resource.h \
48     sys/param.h \
49 db 941 types.h \
50     socket.h \
51 michael 912 sys/wait.h \
52 michael 1348 wait.h)
53 michael 912
54 michael 977 AC_SEARCH_LIBS(crypt, crypt)
55 michael 923
56 michael 2334 AC_ARG_ENABLE(libgeoip,
57 michael 1856 [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 michael 2481 AX_CHECK_OPENSSL
63 michael 912
64 michael 955 AC_ARG_ENABLE(assert, AS_HELP_STRING([--enable-assert],
65     [Enable assert() statements]),
66 michael 924 [assert=$enableval], [assert=no])
67    
68 michael 1010 AS_IF([test "$assert" = "no"],
69     [AC_DEFINE(NDEBUG, 1, [Define to disable assert() statements.])])
70 michael 924
71 michael 1908 AC_DEFINE([NICKNAMEHISTORYLENGTH], 32768, [Size of the WHOWAS array.])
72 michael 1964 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 michael 1654 AC_DEFINE([MP_CHUNK_SIZE_DBUF], 512*1024, [Size of the dbuf mempool chunk.])
79 michael 1964 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 michael 925
86 stu 908 # Argument processing.
87     AX_ARG_ENABLE_IOLOOP_MECHANISM
88     AX_ARG_ENABLE_DEBUGGING
89     AX_ARG_ENABLE_WARNINGS
90 adx 30
91 stu 908 AC_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.])
92     AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.])
93     AC_DEFINE_DIR([LIBDIR],[libdir],[Set to libdir.])
94     AC_DEFINE_DIR([DATADIR],[datadir],[Set to datadir.])
95     AC_DEFINE_DIR([LOCALSTATEDIR],[localstatedir],[Set to localstatedir.])
96 adx 30
97 michael 922 AC_CONFIG_FILES( \
98     Makefile \
99     src/Makefile \
100 michael 1092 libltdl/Makefile \
101 michael 922 modules/Makefile \
102 michael 1053 modules/core/Makefile \
103 michael 922 doc/Makefile \
104     help/Makefile \
105 michael 1015 tools/Makefile)
106 adx 30
107     AC_OUTPUT

Properties

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