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

Comparing ircd-hybrid-7.2/configure.ac (file contents):
Revision 1014 by michael, Thu Sep 17 17:06:11 2009 UTC vs.
Revision 1015 by michael, Sun Oct 25 00:08:06 2009 UTC

# Line 18 | Line 18 | AC_PROG_YACC
18   AM_PROG_LEX
19   AC_PROG_INSTALL
20  
21 < #ltdl stuff
21 > # Initializing libtool.
22   LT_INIT([dlopen disable-static])
23   LTDL_INIT
24 LIBTOOL="$LIBTOOL --silent"
24  
25   # Checks for libraries.
26   AX_CHECK_LIB_IPV4
# Line 45 | Line 44 | AC_CHECK_HEADERS_ONCE(crypt.h        \
44                        sys/param.h    \
45                        errno.h        \
46                        sys/syslog.h   \
48                      stddef.h       \
49                      libgen.h       \
47                        types.h        \
48                        socket.h       \
49                        sys/wait.h     \
50                        wait.h         \
51                        link.h)
52  
53 < dnl check for /dev/null so we can use it to hold evil fd's
53 > # check for /dev/null so we can use it to hold evil fd's
54   AC_MSG_CHECKING([for /dev/null])
55   AS_IF([test -c /dev/null], [
56    AC_DEFINE(PATH_DEVNULL, "/dev/null",   [Path to /dev/null])
# Line 162 | Line 159 | else
159    dnl If --disable-openssl was specified
160    AC_MSG_RESULT([disabled])
161   fi
162 +
163 + AS_IF([test "$cf_enable_openssl" != "no"],
164 + [AC_MSG_CHECKING(for OpenSSL 0.9.7 or above)
165 +  AC_RUN_IFELSE(
166 +    AC_LANG_PROGRAM([
167 +    #include <openssl/opensslv.h>
168 +    #include <stdlib.h>],
169 +    [[exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));]]),
170 +  [cf_openssl_version_ok=yes],
171 +  [cf_openssl_version_ok=no],
172 +  [cf_openssl_version_ok=no])
173 +
174 +  AS_IF([test "$cf_openssl_version_ok" = "yes"],
175 +    [AC_MSG_RESULT(found)
176 +  
177 +    AC_CHECK_LIB(crypto, RSA_free)
178 +    AS_IF([test "$ac_cv_lib_crypto_RSA_free" = "yes"],
179 +      [AC_CHECK_FUNCS(EVP_bf_cfb           \
180 +                      EVP_cast5_cfb        \
181 +                      EVP_idea_cfb         \
182 +                      EVP_rc5_32_12_16_cfb \
183 +                      EVP_des_ede3_cfb     \
184 +                      EVP_des_cfb)])
185 +    ],[AC_MSG_RESULT(no - OpenSSL support disabled)
186 +    cf_enable_openssl="no"])])
187 +
188   AM_CONDITIONAL(ENABLE_SSL, [test "$cf_enable_openssl" = yes])
189  
190  
# Line 177 | Line 200 | AC_ARG_ENABLE(small-net, AS_HELP_STRING(
200                                          [Enable small network support.]),
201   [small_net=$enableval], [small_net=no])
202  
203 < if test "$small_net" = yes; then
203 > AS_IF([test "$small_net" = "yes"], [
204    AC_DEFINE([NICKNAMEHISTORYLENGTH], 1500, [Size of the WHOWAS array.])
205    AC_DEFINE([CHANNEL_HEAP_SIZE], 256, [Size of the channel heap.])
206    AC_DEFINE([BAN_HEAP_SIZE], 128, [Size of the ban heap.])
# Line 187 | Line 210 | if test "$small_net" = yes; then
210    AC_DEFINE([TOPIC_HEAP_SIZE], 256, [Size of the topic heap.])
211    AC_DEFINE([DBUF_HEAP_SIZE], 64, [Size of the dbuf heap.])
212    AC_DEFINE([AUTH_HEAP_SIZE], 128, [Size of the auth heap.])
213 <  AC_DEFINE([DNS_HEAP_SIZE], 128, [Size of the dns heap.])
214 < else
213 >  AC_DEFINE([DNS_HEAP_SIZE], 128, [Size of the dns heap.])], [
214 >
215    AC_DEFINE([NICKNAMEHISTORYLENGTH], 15000, [Size of the WHOWAS array.])
216    AC_DEFINE([CHANNEL_HEAP_SIZE], 1024, [Size of the channel heap.])
217    AC_DEFINE([BAN_HEAP_SIZE], 1024, [Size of the ban heap.])
# Line 198 | Line 221 | else
221    AC_DEFINE([TOPIC_HEAP_SIZE], 1024, [Size of the topic heap.])
222    AC_DEFINE([DBUF_HEAP_SIZE], 512, [Size of the dbuf heap.])
223    AC_DEFINE([AUTH_HEAP_SIZE], 512, [Size of the auth heap.])
224 <  AC_DEFINE([DNS_HEAP_SIZE], 512, [Size of the dns heap.])
202 < fi
224 >  AC_DEFINE([DNS_HEAP_SIZE], 512, [Size of the dns heap.])])
225  
226  
227   # Argument processing.
# Line 236 | Line 258 | AC_CONFIG_FILES(              \
258         help/Makefile          \
259                           help/opers/Makefile            \
260                           help/users/Makefile    \
261 <       tools/Makefile
240 < )
261 >       tools/Makefile)
262  
263   AC_OUTPUT

Diff Legend

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