ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure.ac
(Generate patch)

Comparing:
ircd-hybrid-8/configure.ac (file contents), Revision 1156 by michael, Tue Aug 9 20:29:20 2011 UTC vs.
ircd-hybrid/trunk/configure.ac (file contents), Revision 6119 by michael, Thu Jun 11 14:10:27 2015 UTC

# Line 1 | Line 1
1 < # Inspired by work Copyright (C) 2006 Luca Filipozzi
2 < # vim: set fdm=marker ts=2 sw=2 et:
1 > dnl Process this file with autoconf to produce a configure script.
2  
3   AC_REVISION([$Id$])
4  
5 < AC_PREREQ(2.68)
6 < AC_INIT([ircd-hybrid], [7.3.0], [bugs@ircd-hybrid.org])
7 < AM_INIT_AUTOMAKE(1.11.1)
5 > AC_PREREQ(2.69)
6 > AC_INIT([ircd-hybrid], [TRUNK], [bugs@ircd-hybrid.org])
7 > AM_INIT_AUTOMAKE(1.15 subdir-objects)
8   AM_MAINTAINER_MODE
9 + AC_CONFIG_MACRO_DIR([m4])
10   AC_CONFIG_HEADER(config.h)
11   AC_CONFIG_SRCDIR(src/ircd.c)
12  
13   # Checks for programs.
14   AC_PROG_CC_C99
15   AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
16 <    [AC_MSG_ERROR([no C99 compiler found. Aborting.])])
16 >    [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
17   AC_PROG_YACC
18   AM_PROG_LEX
19   AC_PROG_INSTALL
# Line 25 | Line 25 | LTDL_INIT([recursive convenience])
25   LIBTOOL="$LIBTOOL --silent"
26  
27   # Checks for libraries.
28 < AX_CHECK_LIB_IPV4
29 < AX_CHECK_LIB_IPV6
28 > GCC_STACK_PROTECT_CC
29 > GCC_STACK_PROTECT_LIB
30 >
31 > AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing])
32 > AX_LIBRARY_NET
33  
34   # Checks for typedefs, structures, and compiler characteristics.
35   AC_C_BIGENDIAN
36  
37   # Checks for library functions.
38 < AC_CHECK_FUNCS_ONCE(mmap     \
36 <                    strtok_r \
38 > AC_CHECK_FUNCS_ONCE(strtok_r \
39                      usleep   \
40                      strlcat  \
41 <                    strlcpy  \
40 <                    socketpair)
41 >                    strlcpy)
42  
43   # Checks for header files.
44   AC_CHECK_HEADERS_ONCE(crypt.h        \
44                      inttypes.h     \
45                      stdint.h       \
45                        sys/resource.h \
46                        sys/param.h    \
48                      errno.h        \
49                      sys/syslog.h   \
47                        types.h        \
48                        socket.h       \
49                        sys/wait.h     \
50 <                      wait.h         \
54 <                      link.h)
55 <
56 < # check for /dev/null so we can use it to hold evil fd's
57 < AC_MSG_CHECKING([for /dev/null])
58 < AS_IF([test -c /dev/null], [
59 <  AC_DEFINE(PATH_DEVNULL, "/dev/null",   [Path to /dev/null])
60 <  AC_MSG_RESULT([yes])], [
61 <  AC_DEFINE(PATH_DEVNULL, "devnull.log", [Path to /dev/null])
62 <  AC_MSG_RESULT([no - using devnull.log])])
63 <
50 >                      wait.h)
51  
52   AC_SEARCH_LIBS(crypt, crypt)
53  
54 <
55 < AC_ARG_WITH(zlib-path,
56 < AS_HELP_STRING([--with-zlib-path=DIR], [Path to libz.so for ziplinks support.]),
57 < [LDFLAGS="-L$withval $LDFLAGS"],)
58 <
59 < AC_ARG_ENABLE(zlib, AS_HELP_STRING([--disable-zlib],[Disable ziplinks support]),
60 < [zlib=$enableval],[zlib=yes])
61 <
62 < AS_IF([test "$zlib" = "yes"], [
63 <  AC_CHECK_HEADER(zlib.h, [AC_CHECK_LIB(z, zlibVersion,
64 <    [
65 <      LIBS="-lz $LIBS"
66 <      AC_DEFINE(HAVE_LIBZ, 1, [Define to 1 if zlib (-lz) is available.])
67 <    ], zlib=no)
81 <  ], zlib=no)
82 < ])
83 <
84 < AC_ARG_WITH(libpcre-path,
85 < AS_HELP_STRING([--with-libpcre-path=DIR], [Path to libpcre.so for PCRE support.]),
86 < [LDFLAGS="-L$withval $LDFLAGS"],)
87 <
88 < AC_ARG_ENABLE(libpcre, AS_HELP_STRING([--disable-libpcre],[Disable PCRE support]),
89 < [libpcre=$enableval],[libpcre=yes])
90 <
91 < AS_IF([test "$libpcre" = "yes"], [
92 <  AC_CHECK_HEADER(pcre.h, [AC_CHECK_LIB(pcre, pcre_study,
93 <    [
94 <      LIBS="-lpcre $LIBS"
95 <      AC_DEFINE(HAVE_LIBPCRE, 1, [Define to 1 if libpcre (-lpcre) is available.])
96 <    ], libpcre=no)
97 <  ], libpcre=no)
98 < ])
99 < AM_CONDITIONAL(ENABLE_PCRE, [test "$libpcre" = yes])
100 <
101 <
102 < dnl Openssl checks
103 < AC_ARG_ENABLE(openssl,
104 < [  --enable-openssl[=DIR]       Enable OpenSSL support (DIR optional).
105 <  --disable-openssl            Disable OpenSSL support. ],
106 < [ cf_enable_openssl=$enableval ],
107 < [ cf_enable_openssl="auto" ])
108 < AC_MSG_CHECKING([for OpenSSL])
109 < if test "$cf_enable_openssl" != "no"; then
110 <  cf_openssl_basedir=""
111 <  if test "$cf_enable_openssl" != "auto" &&
112 <     test "$cf_enable_openssl" != "yes"; then
113 <     dnl Support for --enable-openssl=/some/place
114 <     cf_openssl_basedir="${cf_enable_openssl}"
115 <  else
116 <    dnl Do the auto-probe here.  Check some common directory paths.
117 <    for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
118 <                /opt /opt/openssl /usr/local/openssl; do
119 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
120 <        cf_openssl_basedir="${dirs}"
121 <        break
122 <      fi
123 <    done
124 <    unset dirs
125 <  fi
126 <
127 <  dnl Now check cf_openssl_found to see if we found anything.
128 <  if test ! -z "$cf_openssl_basedir"; then
129 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
130 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
131 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
132 <    else
133 <      dnl OpenSSL wasn't found in the directory specified.  Naughty
134 <      dnl administrator...
135 <      cf_openssl_basedir=""
136 <    fi
137 <  else
138 <    dnl Check for stock FreeBSD 4.x and 5.x systems, since their files
139 <    dnl are in /usr/include and /usr/lib.  In this case, we don't want to
140 <    dnl change INCLUDES or LIBS, but still want to enable OpenSSL.
141 <    dnl We can't do this check above, because some people want two versions
142 <    dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl)
143 <    dnl and they want /usr/local/ssl to have preference.
144 <    if test -f "/usr/include/openssl/opensslv.h"; then
145 <      cf_openssl_basedir="/usr"
146 <    fi
147 <  fi
148 <
149 <  dnl If we have a basedir defined, then everything is okay.  Otherwise,
150 <  dnl we have a problem.
151 <  if test ! -z "$cf_openssl_basedir"; then
152 <    LIBS="-lcrypto -lssl $LIBS"
153 <    AC_MSG_RESULT([$cf_openssl_basedir])
154 <    cf_enable_openssl="yes"
155 <    AC_DEFINE(HAVE_LIBCRYPTO, 1, [If we support ssl])
156 <  else
157 <    AC_MSG_RESULT([not found. Please check your path.])
158 <    cf_enable_openssl="no"
159 <  fi
160 <  unset cf_openssl_basedir
161 < else
162 <  dnl If --disable-openssl was specified
163 <  AC_MSG_RESULT([disabled])
164 < fi
165 <
166 < AS_IF([test "$cf_enable_openssl" != "no"],
167 < [AC_MSG_CHECKING(for OpenSSL 0.9.7 or above)
168 <  AC_RUN_IFELSE([
169 <    AC_LANG_PROGRAM([
170 <    #include <openssl/opensslv.h>
171 <    #include <stdlib.h>],
172 <    [[ exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000)); ]])],
173 <  [cf_openssl_version_ok=yes],
174 <  [cf_openssl_version_ok=no],
175 <  [cf_openssl_version_ok=no])
176 <
177 <  AS_IF([test "$cf_openssl_version_ok" = "yes"],
178 <    [AC_MSG_RESULT(found)
179 <
180 <    AC_CHECK_LIB(crypto, RSA_free)
181 <    AS_IF([test "$ac_cv_lib_crypto_RSA_free" = "yes"],
182 <      [AC_CHECK_FUNCS(EVP_bf_cfb           \
183 <                      EVP_cast5_cfb        \
184 <                      EVP_idea_cfb         \
185 <                      EVP_rc5_32_12_16_cfb \
186 <                      EVP_des_ede3_cfb     \
187 <                      EVP_des_cfb)])
188 <    ],[AC_MSG_RESULT(no - OpenSSL support disabled)
189 <    cf_enable_openssl="no"])])
190 <
191 < AM_CONDITIONAL(ENABLE_SSL, [test "$cf_enable_openssl" = yes])
192 <
193 <
194 < AC_ARG_ENABLE(assert, AS_HELP_STRING([--enable-assert],
195 <                                     [Enable assert() statements]),
196 <  [assert=$enableval], [assert=no])
197 <
198 < AS_IF([test "$assert" = "no"],
199 <  [AC_DEFINE(NDEBUG, 1, [Define to disable assert() statements.])])
200 <
201 <
202 < AC_ARG_ENABLE(small-net, AS_HELP_STRING([--enable-small-net],
203 <                                        [Enable small network support.]),
204 < [small_net=$enableval], [small_net=no])
205 <
206 < AS_IF([test "$small_net" = "yes"], [
207 <  AC_DEFINE([NICKNAMEHISTORYLENGTH], 1500, [Size of the WHOWAS array.])
208 <  AC_DEFINE([CHANNEL_HEAP_SIZE], 256, [Size of the channel heap.])
209 <  AC_DEFINE([BAN_HEAP_SIZE], 128, [Size of the ban heap.])
210 <  AC_DEFINE([CLIENT_HEAP_SIZE], 256, [Size of the client heap.])
211 <  AC_DEFINE([LCLIENT_HEAP_SIZE], 128, [Size of the local client heap.])
212 <  AC_DEFINE([DNODE_HEAP_SIZE], 256, [Size of the dlink_node heap.])
213 <  AC_DEFINE([TOPIC_HEAP_SIZE], 256, [Size of the topic heap.])
214 <  AC_DEFINE([DBUF_HEAP_SIZE], 64, [Size of the dbuf heap.])
215 <  AC_DEFINE([AUTH_HEAP_SIZE], 128, [Size of the auth heap.])
216 <  AC_DEFINE([DNS_HEAP_SIZE], 128, [Size of the dns heap.])], [
217 <
218 <  AC_DEFINE([NICKNAMEHISTORYLENGTH], 15000, [Size of the WHOWAS array.])
219 <  AC_DEFINE([CHANNEL_HEAP_SIZE], 1024, [Size of the channel heap.])
220 <  AC_DEFINE([BAN_HEAP_SIZE], 1024, [Size of the ban heap.])
221 <  AC_DEFINE([CLIENT_HEAP_SIZE], 1024, [Size of the client heap.])
222 <  AC_DEFINE([LCLIENT_HEAP_SIZE], 512, [Size of the local client heap.])
223 <  AC_DEFINE([DNODE_HEAP_SIZE], 1024, [Size of the dlink_node heap.])
224 <  AC_DEFINE([TOPIC_HEAP_SIZE], 1024, [Size of the topic heap.])
225 <  AC_DEFINE([DBUF_HEAP_SIZE], 512, [Size of the dbuf heap.])
226 <  AC_DEFINE([AUTH_HEAP_SIZE], 512, [Size of the auth heap.])
227 <  AC_DEFINE([DNS_HEAP_SIZE], 512, [Size of the dns heap.])])
228 <
54 > AC_DEFINE([NICKNAMEHISTORYLENGTH], 32768, [Size of the WHOWAS array.])
55 > AC_DEFINE([MP_CHUNK_SIZE_CHANNEL], 1024*1024, [Size of the channel mempool chunk.])
56 > AC_DEFINE([MP_CHUNK_SIZE_MEMBER], 2048*1024, [Size of the channel-member mempool chunk.])
57 > AC_DEFINE([MP_CHUNK_SIZE_BAN], 1024*1024, [Size of the ban mempool chunk.])
58 > AC_DEFINE([MP_CHUNK_SIZE_CLIENT], 1024*1024, [Size of the client mempool chunk.])
59 > AC_DEFINE([MP_CHUNK_SIZE_CONNECTION], 512*1024, [Size of the connection mempool chunk.])
60 > AC_DEFINE([MP_CHUNK_SIZE_DNODE], 32*1024, [Size of the dlink_node mempool chunk.])
61 > AC_DEFINE([MP_CHUNK_SIZE_DBUF], 512*1024, [Size of the dbuf mempool chunk.])
62 > AC_DEFINE([MP_CHUNK_SIZE_AUTH], 128*1024, [Size of the auth mempool chunk.])
63 > AC_DEFINE([MP_CHUNK_SIZE_DNS], 64*1024, [Size of the dns mempool chunk.])
64 > AC_DEFINE([MP_CHUNK_SIZE_WATCH], 8*1024, [Size of the watch mempool chunk.])
65 > AC_DEFINE([MP_CHUNK_SIZE_NAMEHOST], 64*1024, [Size of the namehost mempool chunk.])
66 > AC_DEFINE([MP_CHUNK_SIZE_USERHOST], 128*1024, [Size of the userhost mempool chunk.])
67 > AC_DEFINE([MP_CHUNK_SIZE_IP_ENTRY], 128*1024, [Size of the ip_entry mempool chunk.])
68  
69   # Argument processing.
70 < AX_ARG_ENABLE_IOLOOP_MECHANISM
71 < AX_ARG_WITH_NICKLEN
233 < AX_ARG_WITH_TOPICLEN
234 < AX_ARG_WITH_SYSLOG
235 < AX_ARG_ENABLE_EFNET
236 < AX_ARG_ENABLE_HALFOPS
70 > AX_ARG_IOLOOP_MECHANISM
71 > AX_ARG_ENABLE_ASSERT
72   AX_ARG_ENABLE_DEBUGGING
73   AX_ARG_ENABLE_WARNINGS
74 < AX_ARG_ENABLE_SYSLOG
74 > AX_ARG_OPENSSL
75 > AX_ARG_LIBGEOIP
76  
77   AC_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.])
78   AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.])
# Line 246 | Line 82 | AC_DEFINE_DIR([LOCALSTATEDIR],[localstat
82  
83   AC_CONFIG_FILES(              \
84         Makefile               \
249       etc/Makefile           \
250       servlink/Makefile      \
251       contrib/Makefile       \
252       contrib/help/Makefile  \
85         src/Makefile           \
86         libltdl/Makefile       \
255       messages/Makefile      \
87         modules/Makefile       \
88         modules/core/Makefile  \
89 +       modules/extra/Makefile \
90         doc/Makefile           \
91         help/Makefile          \
260       help/opers/Makefile    \
261       help/users/Makefile    \
92         tools/Makefile)
93  
94   AC_OUTPUT
95 +
96 + echo "###############################################################################"
97 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
98 + echo
99 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
100 + echo "   ./configure --prefix=DIRECTORY"
101 + echo "###############################################################################"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)