ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/configure.ac
Revision: 501
Committed: Thu Mar 2 10:40:42 2006 UTC (20 years, 5 months ago) by michael
Content type: application/pkix-attr-cert
File size: 32439 byte(s)
Log Message:
- Removed all inlined versions of dlink* functions
- Added an assert()s to dlinkDelete()
- NDEBUG is now undefined by default for testing and beta versions

File Contents

# User Rev Content
1 knight 31 dnl $Id$
2 adx 30 dnl Process this file with autoconf to produce a configure script.
3    
4     dnl TODO: clean up all the OpenSSL and shared module checking stuff;
5     dnl the most major changes have already been made and it looks like
6     dnl said functions need to be just about as complex as they already are.
7    
8 michael 244 AC_PREREQ(2.59)
9 adx 30
10     dnl Sneaky way to get an Id tag into the configure script
11 knight 31 AC_COPYRIGHT([$Id$])
12 adx 30
13 michael 244 AC_INIT([ircd-hybrid],[7.3])
14 adx 30
15     AC_CONFIG_HEADER(include/setup.h)
16    
17     AC_PREFIX_DEFAULT(/usr/local/ircd)
18    
19     AC_GNU_SOURCE
20    
21     OLD_CFLAGS="$CFLAGS"
22     dnl Checks for programs.
23     AC_PROG_CC
24     AC_LANG(C)
25    
26     dnl Make sure autoconf doesn't interfere with cflags -jmallett
27     CFLAGS="$OLD_CFLAGS"
28    
29     dnl Check for various compilers. -jmallett
30     dnl But if $CC turns out to be gcc, sure as hell it's, well, gcc. -joshk
31    
32     if test "$ac_cv_c_compiler_gnu" != yes; then
33    
34     SGS=no
35     AC_MSG_CHECKING($CC -version for TenDRA or MIPSpro)
36     case `$CC -version 2>&1` in
37     *TenDRA*)
38     AC_MSG_RESULT([yes, TenDRA])
39     IRC_CFLAGS=""
40     CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem"
41     SGS=yes
42     TenDRA=yes
43     ;;
44     *MIPSpro*)
45     AC_MSG_RESULT([yes, MIPSpro])
46     MIPSpro=yes
47     SGS=yes
48     ;;
49     *)
50     AC_MSG_RESULT(no)
51     TenDRA=no
52     MIPSpro=no
53     ;;
54     esac
55    
56     AC_MSG_CHECKING([$CC -V for Sun Workshop, Forte, HPUX or Tru64 cc])
57     case `$CC -V 2>&1` in
58     *Sun*WorkShop* | *Forte*Developer* | *Sun*C*)
59     AC_MSG_RESULT(Sun Workshop/Forte)
60 michael 501 IRC_CFLAGS="-xO3 -xdepend -xinline=_MyMalloc,_MyRealloc,_MyFree,_DupString"
61 adx 30 SunWorkShop=yes
62     SGS=yes
63     ;;
64     *Tru64*)
65     AC_MSG_RESULT(Tru64 cc)
66     IRC_CFLAGS=""
67     CPPFLAGS="-I/usr/local/include"
68     Tru=yes
69     ;;
70     *HP*ANSI*)
71     AC_MSG_RESULT(HPUX cc)
72     HPUX=yes
73     IRC_CFLAGS="+e"
74     ;;
75     *)
76     AC_MSG_RESULT(no)
77     ;;
78     esac
79    
80     fi
81    
82     AC_MSG_CHECKING([uname -s for Cygwin, Solaris or HPUX])
83     case `uname -s` in
84     HP-UX*)
85     dnl only do this if we haven't already detected the newer one
86     dnl and we're not already using gcc
87    
88     if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
89     AC_MSG_RESULT(assuming old HPUX with its own cc)
90     IRC_CFLAGS="$IRC_CFLAGS +e"
91     HPUX=yes
92     else
93     AC_MSG_RESULT(already using newer HPUX)
94     fi
95     ;;
96     CYGWIN*)
97     AC_MSG_RESULT(Cygwin)
98     CYGWIN=yes
99     ;;
100     SunOS*)
101     AC_MSG_RESULT(SunOS or Solaris)
102     AC_DEFINE(__EXTENSIONS__, 1, [This is needed to use strtok_r on Solaris.])
103     ;;
104     *)
105     AC_MSG_RESULT(no)
106     ;;
107     esac
108    
109     if test "$ac_cv_c_compiler_gnu" = yes; then
110     AC_MSG_CHECKING(if $CC is Apple GCC)
111    
112     if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then
113     AppleGCC=yes
114     else
115     AppleGCC=no
116     fi
117    
118     AC_MSG_RESULT($AppleGCC)
119    
120 michael 254 IRC_CFLAGS="$IRC_CFLAGS -Wall -O0"
121 adx 30 fi
122    
123     dnl If we support -g, use it!
124     if test "$ac_cv_prog_cc_g" = yes; then
125     dnl Tru64 needs -g3 for -O2
126     if test "$Tru" = yes; then
127     IRC_CFLAGS="$IRC_CFLAGS -g3"
128     else
129     IRC_CFLAGS="$IRC_CFLAGS -g"
130     fi
131     fi
132    
133     dnl SVR4 SGS based on what we know about the compiler -jmallett
134     AC_MSG_CHECKING(if $CC supports the SVR4 SGS interfaces)
135     if test "$SGS" = "yes"; then
136     AC_MSG_RESULT(yes)
137     else
138     AC_MSG_RESULT(no)
139     fi
140    
141     dnl We prefer gcc -MM because it's a lot less bloated
142     AC_PATH_PROG(MKDEP, mkdep)
143     AC_PATH_PROG(MAKEDEPEND, makedepend)
144    
145     AC_MSG_CHECKING(how to generate dependency info)
146    
147     STDOUT="> .depend"
148    
149     if test "$ac_cv_c_compiler_gnu" = yes; then
150     AC_MSG_RESULT(gcc -MM)
151     MKDEP="$CC -MM"
152     elif test ! -z "$MKDEP"; then
153     AC_MSG_RESULT(mkdep)
154    
155     dnl Tru64's mkdep is very loud
156     if test -z "$Tru"; then
157     STDOUT=""
158     else
159     STDOUT=" 2> /dev/null"
160     fi
161     elif test "$SunWorkShop" = yes; then
162     AC_MSG_RESULT($CC -xM)
163     MKDEP="$CC -xM"
164     STDOUT="> .depend 2> /dev/null"
165     elif test ! -z "$MAKEDEPEND"; then
166     AC_MSG_RESULT(makedepend)
167     MKDEP="$MAKEDEPEND -f-"
168     else
169     AC_MSG_RESULT([nothing suitable.. forget it!])
170     MKDEP=":"
171     fi
172    
173     AC_SUBST(MKDEP)
174     AC_SUBST(STDOUT)
175    
176     dnl check for /dev/null so we can use it to hold evil fd's
177     AC_MSG_CHECKING([for /dev/null])
178     if test -c /dev/null ; then
179     AC_DEFINE(PATH_DEVNULL, "/dev/null", [Path to /dev/null])
180     AC_MSG_RESULT(yes)
181     else
182     AC_DEFINE(PATH_DEVNULL, "devnull.log", [Path to /dev/null])
183     AC_MSG_RESULT(no - using devnull.log)
184     fi
185    
186     dnl jdc -- If CFLAGS is defined, best use it everywhere...
187     dnl NOTE: jv says it must be added to the *END*, because things like
188     dnl "gcc -O9 -O2" will result in -O2 getting preference. How stupid.
189     if test ! -z "$CFLAGS"; then
190     IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
191     fi
192    
193     AC_ISC_POSIX
194     AC_C_INLINE
195     AC_PROG_GCC_TRADITIONAL
196     AC_PROG_MAKE_SET
197     AC_PROG_INSTALL
198     AC_PATH_PROG(RM, rm)
199     AC_PATH_PROG(CP, cp)
200     AC_PATH_PROG(MV, mv)
201     AC_PATH_PROG(LN, ln)
202     AC_PATH_PROG(SED, sed)
203     AC_PATH_PROG(AR, ar)
204     AC_PATH_PROG(LD, ld)
205     AC_PATH_PROG(TEST, [test], [test])
206    
207     dnl use directory structure of cached as default (hack)
208     if test "$libexecdir" = '${exec_prefix}/libexec' &&
209     test "$localstatedir" = '${prefix}/var'; then
210     libexecdir='${bindir}'
211     localstatedir='${prefix}'
212     fi
213    
214     dnl Checks for header files.
215     AC_HEADER_STDC
216    
217 db 165 AC_CHECK_HEADERS([crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h])
218 adx 30
219     dnl Networking Functions
220     dnl ====================
221    
222     AC_SEARCH_LIBS(socket, socket, , [AC_MSG_ERROR([You have no socket()! Aborting.])])
223    
224     dnl Don't use them if they're available natively... else, they're available in inet_misc
225     AC_SEARCH_LIBS(inet_aton, resolv, , [inet_misc=1; AC_DEFINE(NO_INET_ATON, 1, [Define if you have no native inet_aton() function.])])
226     AC_SEARCH_LIBS(inet_pton, resolv nsl, , [inet_misc=1; AC_DEFINE(NO_INET_PTON, 1, [Define if you have no native inet_pton() function.])])
227     AC_SEARCH_LIBS(inet_ntop, resolv nsl, , [inet_misc=1; AC_DEFINE(NO_INET_NTOP, 1, [Define if you have no native inet_ntop() function.])])
228    
229     if test "$inet_misc" = 1; then
230 adx 61 AC_SUBST(INET_MISC, inet_misc.c)
231 adx 30 fi
232    
233     AC_CHECK_TYPES([struct sockaddr_storage], , ,
234     [[#include <sys/types.h>
235     #include <sys/socket.h>
236     ]])
237    
238     if test "$ac_cv_type_struct_sockaddr_storage" = no; then
239     AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
240     [AC_DEFINE(SOCKADDR_IN_HAS_LEN, 1, [Define to 1 if sockaddr_in has a 'sin_len' member.])])
241     fi
242    
243     AC_CHECK_TYPES([struct addrinfo], , , [[#include <netdb.h>]])
244    
245     AC_CHECK_TYPE(socklen_t, ,
246     [AC_DEFINE([socklen_t], [unsigned int],
247     [If we don't have a real socklen_t, unsigned int is good enough.])],
248     [#include <sys/types.h>
249     #include <sys/socket.h>])
250    
251     dnl Tru64 accepts *both*
252     if test -z "$Tru"; then
253    
254     AC_MSG_CHECKING(for broken glibc with __ss_family)
255     AC_COMPILE_IFELSE(
256     [AC_LANG_PROGRAM(
257     [#include <sys/types.h>
258     #include <sys/socket.h>],
259     [struct sockaddr_storage s; s.__ss_family = AF_INET;])],
260     [
261     AC_MSG_RESULT(yes)
262     AC_DEFINE(ss_family, __ss_family, [Broken glibc implementations use __ss_family instead of ss_family. Define to __ss_family if true.])
263     ],
264     [AC_MSG_RESULT(no)])
265    
266     fi
267    
268     AC_MSG_CHECKING([for core IPv6 support])
269    
270     AC_COMPILE_IFELSE(
271     [AC_LANG_PROGRAM(
272     [[#define IN_AUTOCONF
273     #include "include/stdinc.h"]],
274     [[struct sockaddr_in6 s;
275     struct sockaddr_storage t;
276     s.sin6_family = 0;]]
277     )],
278     [
279     if test "$CYGWIN" = "yes"; then
280     AC_MSG_RESULT([no, Cygwin's IPv6 is incomplete])
281     have_v6=no
282     else
283     have_v6=yes
284     AC_DEFINE(IPV6, 1, [Define if IPv6 support is present and available.])
285     AC_MSG_RESULT(yes)
286     AC_MSG_CHECKING([for struct in6addr_any])
287     AC_COMPILE_IFELSE(
288     [AC_LANG_PROGRAM(
289     [[#define IN_AUTOCONF
290     #include "include/stdinc.h"]],
291     [[struct in6_addr a = in6addr_any;]]
292     )],
293     [AC_MSG_RESULT(yes)],
294     [
295     AC_MSG_RESULT(no)
296     AC_DEFINE(NO_IN6ADDR_ANY, 1, [Define to 1 if your system has no in6addr_any.])
297     inet_misc=1
298     ]
299     )
300     fi
301     ],
302     [AC_MSG_RESULT(no)
303     have_v6="no"])
304    
305     AC_SEARCH_LIBS(crypt, [crypt descrypt],,)
306    
307     CRYPT_LIB=$ac_cv_search_crypt
308    
309     if test "$CRYPT_LIB" = "none required"; then
310     unset CRYPT_LIB
311     elif test "$CRYPT_LIB" = no; then
312     CRYPT_C=crypt.c
313     unset CRYPT_LIB
314     fi
315    
316     AC_SUBST(CRYPT_C)
317     AC_SUBST(CRYPT_LIB)
318    
319     dnl See whether we can include both string.h and strings.h.
320     AC_CACHE_CHECK([whether string.h and strings.h may both be included],
321     gcc_cv_header_string,
322     [
323     AC_COMPILE_IFELSE(
324     [#include <string.h>
325     #include <strings.h>],
326     [gcc_cv_header_string=yes],
327     [gcc_cv_header_string=no])
328     ])
329    
330     if test "$gcc_cv_header_string" = "yes"; then
331     AC_DEFINE(STRING_WITH_STRINGS, 1, [Define to 1 if string.h may be included along with strings.h])
332     fi
333    
334     AC_C_BIGENDIAN
335    
336     dnl Check for stdarg.h - if we can't find it, halt configure
337     AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** stdarg.h could not be found - ircd-hybrid will not compile without it **])])
338    
339     dnl Checks for the existence of strlcat, strlcpy, basename...
340     dnl This more reliable test only works with gcc though.
341    
342     if test "$ac_cv_c_compiler_gnu" = yes; then
343    
344     AC_MSG_CHECKING(for strlcpy)
345     save_CFLAGS=$CFLAGS
346     CFLAGS="$CFLAGS -Wimplicit -Werror"
347    
348     AC_LINK_IFELSE(
349     [AC_LANG_PROGRAM(
350     [[#include <string.h>
351     #include <stdlib.h>]],
352     [[char *a = malloc(6), *b = strdup("hello");
353     strlcpy(a, b, 6);]]
354     )],
355     [AC_MSG_RESULT(yes)
356     AC_DEFINE(HAVE_STRLCPY, 1, [Define if strlcpy is available (most BSDs.)])],
357     [AC_MSG_RESULT(no)]
358     )
359    
360     AC_MSG_CHECKING(for strlcat)
361     AC_LINK_IFELSE(
362     [AC_LANG_PROGRAM(
363     [[#include <string.h>
364     #include <stdlib.h>]],
365     [[char *a = malloc(6), *b = strdup("hello");
366     strlcat(a, b, 6);]]
367     )],
368     [AC_MSG_RESULT(yes)
369     AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcat is available (most BSDs.)])],
370     [AC_MSG_RESULT(no)]
371     )
372    
373     CFLAGS=$save_CFLAGS
374    
375     else
376    
377     dnl Better than nothing. The more complicated test above probably fixes powerpc,
378     dnl so who cares.
379    
380     AC_CHECK_FUNCS([strlcat strlcpy])
381    
382     fi
383    
384     AC_CHECK_SIZEOF(int64_t)
385     AC_CHECK_SIZEOF(long long)
386    
387     if test "$ac_cv_sizeof_int64_t" = 8; then
388     AC_CHECK_TYPE(uint64_t)
389     AC_CHECK_TYPE(int64_t)
390     elif test "$ac_cv_sizeof_long_long" = 8; then
391     AC_CHECK_TYPE(uint64_t, unsigned long long)
392     AC_CHECK_TYPE(int64_t, long long)
393     else
394     AC_MSG_ERROR([Your system doesn't appear to have 64 bit integers. Aborting.])
395     fi
396    
397     AC_CHECK_TYPE([u_int32_t], [],
398     [
399     AC_CHECK_TYPE([uint32_t],
400     [
401     AC_DEFINE(u_int32_t, [uint32_t], [If system does not define u_int32_t, define a reasonable substitute.])
402     ],
403     [
404     AC_MSG_WARN([system has no u_int32_t or uint32_t, default to unsigned long int])
405     AC_DEFINE(u_int32_t, [unsigned long int], [If system does not define u_int32_t, define to unsigned long int here.])
406     ])
407     ])
408    
409     AC_CHECK_TYPE([u_int16_t], [],
410     [
411     AC_CHECK_TYPE([uint16_t],
412     [
413     AC_DEFINE(u_int16_t, [uint16_t], [If system does not define u_int16_t, define a usable substitute])
414     ],
415     [
416     AC_MSG_WARN([system has no u_int16_t or uint16_t, default to unsigned short int])
417     AC_DEFINE(u_int16_t, [unsigned short int], [If system does not define u_int16_t, define a usable substitute.])
418     ])
419     ])
420    
421     AC_CHECK_TYPE([in_port_t], [],
422     [AC_DEFINE(in_port_t, [u_int16_t], [If system does not define in_port_t, define it to what it should be.])],
423     [[#include <sys/types.h>
424     #include <netinet/in.h>]])
425    
426     AC_CHECK_TYPE([sa_family_t], [],
427     [AC_DEFINE(sa_family_t, [u_int16_t], [If system does not define sa_family_t, define it here.])],
428     [[#include <sys/types.h>
429     #include <sys/socket.h>]])
430    
431     dnl check for various functions...
432     AC_CHECK_FUNCS([socketpair basename mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep])
433    
434     if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then
435     SNPRINTF_C="snprintf.c"
436     fi
437    
438     AC_SUBST(SNPRINTF_C)
439    
440     dnl Specialized functions checks
441     dnl ============================
442    
443     dnl OpenSSL support
444     AC_MSG_CHECKING(for OpenSSL)
445     AC_ARG_ENABLE(openssl,
446     [AC_HELP_STRING([--enable-openssl[=DIR]],[Enable OpenSSL support (DIR optional).])
447     AC_HELP_STRING([--disable-openssl],[Disable OpenSSL support.])],
448     [cf_enable_openssl=$enableval],
449     [cf_enable_openssl="auto"])
450    
451     if test "$cf_enable_openssl" != "no" ; then
452     cf_openssl_basedir=""
453     if test "$cf_enable_openssl" != "auto" &&
454     test "$cf_enable_openssl" != "yes" ; then
455     dnl Support for --enable-openssl=/some/place
456     cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
457     else
458     dnl Do the auto-probe here. Check some common directory paths.
459     for dirs in /usr/local/ssl /usr/pkg /usr/local \
460     /usr/local/openssl /usr/sfw; do
461     if test -f "${dirs}/include/openssl/opensslv.h" ; then
462     cf_openssl_basedir="${dirs}"
463     break
464     fi
465     done
466     unset dirs
467     fi
468     dnl Now check cf_openssl_found to see if we found anything.
469     if test ! -z "$cf_openssl_basedir"; then
470     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
471     SSL_INCLUDES="-I${cf_openssl_basedir}/include"
472     SSL_LIBS="-L${cf_openssl_basedir}/lib"
473     else
474     dnl OpenSSL wasn't found in the directory specified. Naughty
475     dnl administrator...
476     cf_openssl_basedir=""
477     fi
478     else
479     dnl Check for stock FreeBSD 4.x and 5.x systems, since their files
480     dnl are in /usr/include and /usr/lib. In this case, we don't want to
481     dnl change INCLUDES or LIBS, but still want to enable OpenSSL.
482     dnl We can't do this check above, because some people want two versions
483     dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl)
484     dnl and they want /usr/local/ssl to have preference.
485     if test -f "/usr/include/openssl/opensslv.h" ; then
486     cf_openssl_basedir="/usr"
487     fi
488     fi
489    
490     dnl If we have a basedir defined, then everything is okay. Otherwise,
491     dnl we have a problem.
492     if test ! -z "$cf_openssl_basedir"; then
493     AC_MSG_RESULT($cf_openssl_basedir)
494     cf_enable_openssl="yes"
495     else
496     AC_MSG_RESULT([not found. Specify a correct path?])
497     cf_enable_openssl="no"
498     fi
499     unset cf_openssl_basedir
500     else
501     dnl If --disable-openssl was specified
502     AC_MSG_RESULT(disabled)
503     fi
504    
505     save_CPPFLAGS="$CPPFLAGS"
506     CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
507     save_LIBS="$LIBS"
508     LIBS="$LIBS $SSL_LIBS"
509     if test "$cf_enable_openssl" != no; then
510     dnl Check OpenSSL version (must be 0.9.6 or above!)
511     AC_MSG_CHECKING(for OpenSSL 0.9.6 or above)
512     AC_RUN_IFELSE(
513     AC_LANG_PROGRAM(
514     [#include <openssl/opensslv.h>
515     #include <stdlib.h>],
516 michael 250 [[if (OPENSSL_VERSION_NUMBER >= 0x00906000)
517 adx 30 exit(0); else exit(1);]]),
518     cf_openssl_version_ok=yes,
519     cf_openssl_version_ok=no,
520     cf_openssl_version_ok=no)
521    
522     if test "$cf_openssl_version_ok" = yes; then
523     AC_MSG_RESULT(found)
524    
525     dnl Work around pmake/gmake conditional incompatibilities
526     AC_SUBST(ENCSPEED, encspeed)
527    
528     dnl Do all the HAVE_LIBCRYPTO magic -- and check for ciphers
529     CPPFLAGS="$CPPFLAGS $SSL_LIBS"
530     AC_CHECK_LIB(crypto, RSA_free)
531     if test "$ac_cv_lib_crypto_RSA_free" = yes; then
532     LIBS="$LIBS -lcrypto"
533     cf_openssl_ciphers=''
534     AC_CHECK_FUNCS(EVP_bf_cfb,
535     cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 ")
536     AC_CHECK_FUNCS(EVP_cast5_cfb,
537     cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 ")
538     AC_CHECK_FUNCS(EVP_idea_cfb,
539     cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 ")
540     AC_CHECK_FUNCS(EVP_rc5_32_12_16_cfb,
541     cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 ")
542     AC_CHECK_FUNCS(EVP_des_ede3_cfb,
543     cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 ")
544     AC_CHECK_FUNCS(EVP_des_cfb,
545     cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 ")
546     fi
547     SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
548     SSL_SRCS_ENABLE='$(SSL_SRCS)'
549     else
550     AC_MSG_RESULT(no - OpenSSL support disabled)
551     fi
552     fi
553    
554     CPPFLAGS="$save_CPPFLAGS"
555     LIBS="$save_LIBS"
556    
557     dnl End OpenSSL detection
558    
559     dnl Specialized functions and libraries
560     dnl ===================================
561    
562     AC_ARG_WITH(zlib-path,
563     AC_HELP_STRING([--with-zlib-path=DIR],[Path to libz.so for ziplinks support.]),
564     [LIBS="$LIBS -L$withval"],)
565    
566     AC_ARG_ENABLE(zlib,
567     AC_HELP_STRING([--disable-zlib],[Disable ziplinks support]),
568     [zlib=$enableval],[zlib=yes])
569    
570     if test "$zlib" = yes; then
571    
572     AC_CHECK_HEADER(zlib.h, [
573     AC_CHECK_LIB(z, zlibVersion,
574     [
575     AC_SUBST(ZLIB_LD, -lz)
576     AC_DEFINE(HAVE_LIBZ, 1, [Define to 1 if zlib (-lz) is available.])
577     ], zlib=no)
578     ], zlib=no)
579    
580     fi
581    
582     dnl IO Loop Selection
583     dnl =================
584    
585     AC_ARG_ENABLE(poll,
586     AC_HELP_STRING([--enable-poll],[Force poll() usage.]),
587     [SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled"],)
588    
589     AC_ARG_ENABLE(select,
590     AC_HELP_STRING([--enable-select],[Force select() usage.]),
591     [SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled"],)
592    
593     AC_ARG_ENABLE(kqueue,
594     AC_HELP_STRING([--enable-kqueue],[Force kqueue() usage.]),
595     [SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled"],)
596    
597     AC_ARG_ENABLE(devpoll,
598     AC_HELP_STRING([--enable-devpoll],[Force usage of /dev/poll.]),
599     [SELECT_TYPE_EXPLICIT="devpoll"
600     echo "Forcing /dev/poll to be enabled"
601     dnl These need to be defined or not defined
602     AC_CHECK_HEADERS([sys/devpoll.h devpoll.h])],)
603    
604     AC_ARG_ENABLE(rtsigio,
605     AC_HELP_STRING([--enable-rtsigio],[Enable SIGIO with RT Signals (Linux only)]),
606     [SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled"],)
607    
608     AC_ARG_ENABLE(epoll,
609     AC_HELP_STRING([--enable-epoll], [Enable Linux epoll support.]),
610     [SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled"],)
611    
612     if test ! -z "$SELECT_TYPE_EXPLICIT"; then
613     SELECT_TYPE="$SELECT_TYPE_EXPLICIT"
614     else
615    
616     AC_CHECK_FUNC([kevent],
617     [
618     SELECT_TYPE="kqueue"
619     ],
620     [
621     AC_CHECK_HEADER(sys/epoll.h, [HAS_EPOLL=1], [HAS_EPOLL=0])
622     if test $HAS_EPOLL -eq 1; then
623     AC_MSG_CHECKING(for epoll support in kernel)
624     AC_TRY_RUN(
625     #include <sys/epoll.h>
626     #include <sys/syscall.h>
627     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
628     #if !defined(__NR_epoll_create)
629     #if defined(__ia64__)
630     #define __NR_epoll_create 1243
631     #elif defined(__x86_64__)
632     #define __NR_epoll_create 214
633     #elif defined(__sparc64__) || defined(__sparc__)
634     #define __NR_epoll_create 193
635     #elif defined(__s390__) || defined(__m68k__)
636     #define __NR_epoll_create 249
637     #elif defined(__ppc64__) || defined(__ppc__)
638     #define __NR_epoll_create 236
639     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
640     #define __NR_epoll_create 224
641     #elif defined(__alpha__)
642     #define __NR_epoll_create 407
643     #elif defined(__sh64__)
644     #define __NR_epoll_create 282
645     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
646     #define __NR_epoll_create 254
647     #else
648     #error No system call numbers defined for epoll family.
649     #endif
650     #endif
651     _syscall1(int, epoll_create, int, size)
652     #endif
653     main() { return epoll_create(256) == -1 ? 1 : 0; },
654     [AC_MSG_RESULT(yes)
655     SELECT_TYPE="epoll"],
656     [AC_MSG_RESULT(no)
657     HAS_EPOLL=0],
658     [AC_MSG_RESULT(no)
659     HAS_EPOLL=0])
660     fi
661     if test $HAS_EPOLL -eq 0; then
662     AC_MSG_CHECKING(for /dev/poll)
663     if test -c "/dev/poll"; then
664     AC_MSG_RESULT(yes)
665     AC_CHECK_HEADERS([devpoll.h sys/devpoll.h])
666     SELECT_TYPE="devpoll"
667     else
668     AC_MSG_RESULT(no)
669     AC_MSG_CHECKING(for RT Signal IO)
670    
671     dnl check for rtsig readiness notification under Linux
672     dnl (but don't use it unless kernel 2.4 or higher)
673     AC_EGREP_CPP(YUP_HAVE_F_SETSIG,
674     [#define _GNU_SOURCE
675     #include <fcntl.h>
676     #ifdef F_SETSIG
677     YUP_HAVE_F_SETSIG
678     #endif
679     ],
680     [
681     SELECT_TYPE="sigio"
682     AC_MSG_RESULT(yes)
683     ],
684     [
685     AC_MSG_RESULT(no)
686     AC_CHECK_FUNC(poll, [SELECT_TYPE="poll"],
687     [
688     AC_CHECK_FUNC(select, [SELECT_TYPE="select"],
689     [AC_MSG_ERROR([Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?])
690     ])
691     ])
692     ])
693     fi
694     fi
695     ])
696    
697     fi
698    
699     echo "Using $SELECT_TYPE for select loop."
700    
701     AC_DEFINE_UNQUOTED(SELECT_TYPE, "$SELECT_TYPE", [This is the type of IO loop we are using])
702     AC_SUBST(SELECT_TYPE)
703    
704    
705     dnl Debug-related options
706     dnl =====================
707    
708     AC_ARG_ENABLE(clobber,
709     AC_HELP_STRING([--enable-clobber], [Don't preserve old binaries on make install]),
710     [clobber=$enableval], [clobber=no])
711    
712     if test "$clobber" = yes; then
713     AC_SUBST(CLOBBER, yes)
714     fi
715    
716 michael 501 dnl enabled for testing and beta releases
717     dnl AC_ARG_ENABLE(assert,
718     dnl AC_HELP_STRING([--enable-assert],[Enable assert().]),
719     dnl [assert=$enableval], [assert=no])
720 adx 30
721 michael 501 dnl if test "$assert" = no; then
722     dnl AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
723     dnl fi
724 adx 30
725     AC_MSG_CHECKING(if you want to do a profile build)
726     AC_ARG_ENABLE(profile,
727     AC_HELP_STRING([--enable-profile],[Enable profiling]),
728     [profile=$enableval], [profile=no])
729    
730     if test "$profile" = yes; then
731     if test "$ac_cv_c_compiler_gnu" = yes; then
732     IRC_CFLAGS="$IRC_CFLAGS -pg -static"
733     AC_MSG_RESULT="yes, adding -pg -static"
734     else
735     AC_MSG_RESULT([no, profile builds only work with gcc])
736     fi
737     else
738     AC_MSG_RESULT(no)
739     fi
740    
741     dnl Check if we want to use efence
742     AC_MSG_CHECKING(if you want ElectricFence)
743     AC_ARG_ENABLE(efence,
744     AC_HELP_STRING([--enable-efence],[Enable ElectricFence (memory debugger).]),
745     [
746     if test "$enableval" != no; then
747     if test ! -z "$enableval" -a "$enableval" != yes; then
748     LIBS="$LIBS -L$enableval"
749     fi
750    
751     AC_CHECK_LIB(efence, malloc,
752     [
753     LIBS="$LIBS -lefence"
754     AC_MSG_RESULT(yes)
755     ],
756     [AC_MSG_RESULT(not found, disabling)])
757     else
758     AC_MSG_RESULT(no)
759     fi
760     ],[AC_MSG_RESULT(no)])
761    
762     dnl Check if we want to enable the block allocator
763     AC_MSG_CHECKING(if you want the block allocator)
764     AC_ARG_ENABLE(block-alloc,
765     AC_HELP_STRING([--disable-block-alloc],[Disable the block allocator (Only useful with ElectricFence)]),
766     [balloc=$enableval], [balloc=yes])
767    
768     if test "$balloc" = no; then
769     AC_SUBST(BALLOC_C, [])
770     AC_DEFINE(NOBALLOC, 1, [Disable the block allocator.])
771     else
772 adx 61 AC_SUBST(BALLOC_C, balloc.c)
773 adx 30 fi
774    
775     AC_MSG_RESULT($balloc)
776    
777     AC_ARG_ENABLE(warnings,
778     AC_HELP_STRING([--enable-warnings],[Enable all sorts of warnings for debugging.]),
779     [IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused"],[])
780    
781     dnl Server Tweaks
782     dnl =============
783    
784     AC_ARG_ENABLE(small-net,
785     AC_HELP_STRING([--enable-small-net],[Enable small network support.]),
786     [small_net=$enableval], [small_net=no])
787    
788     if test "$small_net" = yes; then
789     AC_DEFINE([NICKNAMEHISTORYLENGTH], 1500, [Size of the WHOWAS array.])
790     AC_DEFINE([CHANNEL_HEAP_SIZE], 256, [Size of the channel heap.])
791     AC_DEFINE([BAN_HEAP_SIZE], 128, [Size of the ban heap.])
792     AC_DEFINE([CLIENT_HEAP_SIZE], 256, [Size of the client heap.])
793     AC_DEFINE([LCLIENT_HEAP_SIZE], 128, [Size of the local client heap.])
794     AC_DEFINE([DNODE_HEAP_SIZE], 256, [Size of the dlink_node heap.])
795     AC_DEFINE([TOPIC_HEAP_SIZE], 256, [Size of the topic heap.])
796     AC_DEFINE([DBUF_HEAP_SIZE], 64, [Size of the dbuf heap.])
797     else
798     AC_DEFINE([NICKNAMEHISTORYLENGTH], 15000, [Size of the WHOWAS array.])
799     AC_DEFINE([CHANNEL_HEAP_SIZE], 1024, [Size of the channel heap.])
800     AC_DEFINE([BAN_HEAP_SIZE], 1024, [Size of the ban heap.])
801     AC_DEFINE([CLIENT_HEAP_SIZE], 1024, [Size of the client heap.])
802     AC_DEFINE([LCLIENT_HEAP_SIZE], 512, [Size of the local client heap.])
803     AC_DEFINE([DNODE_HEAP_SIZE], 2048, [Size of the dlink_node heap.])
804     AC_DEFINE([TOPIC_HEAP_SIZE], 1024, [Size of the topic heap.])
805     AC_DEFINE([DBUF_HEAP_SIZE], 512, [Size of the dbuf heap.])
806     fi
807    
808 adx 248 AC_ARG_WITH(nicklen,
809     AC_HELP_STRING([--with-nicklen=LENGTH],[Set the nick length to LENGTH (default 15)]),
810     NICKLEN="$withval", NICKLEN="15")
811    
812 adx 30 AC_ARG_ENABLE(efnet,
813     AC_HELP_STRING([--enable-efnet],[For IRCDs running on EFnet.]),
814     [efnet=$enableval], [efnet=no])
815    
816     if test "$efnet" = yes; then
817     AC_DEFINE(EFNET, 1, [Define if this ircd will be an EFnet server.])
818     AC_DEFINE(TS5_ONLY, 1, [If enabled, server links to your network must have a minimum of TS5.])
819     echo "Building ircd for use with EFnet"
820     EXAMPLE_CONF=example.efnet.conf
821 adx 248 NICKLEN=9
822 adx 30 else
823     AC_DEFINE(INVARIANTS, 1, [Miscellaneous sanity checks for the ircd. Makes it slightly slower])
824     EXAMPLE_CONF=example.conf
825     fi
826    
827     AC_ARG_ENABLE(gline-voting,
828     AC_HELP_STRING([--disable-gline-voting],[Disable G-line voting.]),
829     [gline_voting=$enableval], [gline_voting=yes])
830    
831     if test "$gline_voting" = yes; then
832     AC_DEFINE(GLINE_VOTING, 1, [Define this if you want to enable gline voting.])
833     echo "Building ircd with G-Line voting support"
834     fi
835    
836     AC_ARG_ENABLE(halfops,
837     AC_HELP_STRING([--enable-halfops],[Enable halfops support.]),
838     [halfops=$enableval], [halfops=no])
839    
840     if test "$halfops" = yes; then
841     AC_DEFINE(HALFOPS, 1, [Define if you want halfops support.])
842     fi
843    
844     AC_SUBST(EXAMPLE_CONF)
845    
846     AC_MSG_CHECKING(for syslog options)
847    
848     AC_ARG_ENABLE(syslog,
849     AC_HELP_STRING([--enable-syslog="EVENTS"], [Enable syslog for events: kill, squit, connect, users, oper, space separated in quotes (default: disabled)]),
850     [
851     dnl Hopelessly swiped from the mozilla source (kind of)
852    
853     dnl We must have these headers for it to work..
854     if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then
855    
856     if test "$enableval" != no; then
857     syslogstuff=core
858    
859     for option in $enableval; do
860     case "$option" in
861     kill)
862     syslogstuff="$syslogstuff kill"
863     AC_DEFINE(SYSLOG_KILL, 1, [Send oper kills to syslog])
864     ;;
865     squit)
866     syslogstuff="$syslogstuff squit"
867     AC_DEFINE(SYSLOG_SQUIT, 1, [Send remote squits for all servers to syslog])
868     ;;
869     connect)
870     syslogstuff="$syslogstuff connect"
871     AC_DEFINE(SYSLOG_CONNECT, 1, [Send connect notices for other servers to syslog])
872     ;;
873     users)
874     syslogstuff="$syslogstuff users"
875     AC_DEFINE(SYSLOG_USERS, 1, [Send user log stuff to syslog])
876     ;;
877     oper)
878     syslogstuff="$syslogstuff oper"
879     AC_DEFINE(SYSLOG_OPER, 1, [Send /OPER successes to syslog])
880     ;;
881     dnl yes is okay, shut up you
882     yes)
883     ;;
884     *)
885     AC_MSG_WARN(unknown event $option)
886     ;;
887     esac
888     done
889    
890     if test ! -z "$syslogstuff" -o "$enableval" = yes; then
891     AC_DEFINE(USE_SYSLOG, 1, [Send vital ircd messages to syslog])
892     fi
893     else dnl $enableval is no
894     syslogstuff=none
895     fi
896    
897     else dnl checking for syslog.h's
898     AC_MSG_WARN([both syslog.h and sys/syslog.h unavailable, not enabling syslog])
899     syslogstuff=none
900     fi
901     ],[syslogstuff=none])
902    
903     AC_MSG_RESULT($syslogstuff)
904    
905     AC_ARG_WITH(syslog-facility,
906     AC_HELP_STRING([--with-syslog-facility=LOG], [Define the log facility to use with ircd's syslog output (default LOG_LOCAL4)]),
907     [facility=$withval],[facility="LOG_LOCAL4"])
908    
909     if test "$syslogstuff" != none; then
910     AC_DEFINE_UNQUOTED(LOG_FACILITY, $facility, [Log facility to use for syslog()])
911     fi
912    
913     AC_ARG_WITH(topiclen,
914     AC_HELP_STRING([--with-topiclen=NUMBER],[Set the max topic length to NUMBER (default 160, max 390)]),
915     [
916     if test $withval -ge 390; then
917     TOPICLEN=390
918     AC_MSG_WARN([TOPICLEN has a hard limit of 390. Setting TOPICLEN=390])
919     else
920     TOPICLEN=$withval
921     fi
922     ], [TOPICLEN=160])
923    
924     AC_DEFINE_UNQUOTED(TOPICLEN, ${TOPICLEN}, [Maximum topic length (<=390)])
925     AC_DEFINE_UNQUOTED(NICKLEN, (${NICKLEN}+1), [Nickname length])
926 adx 64 AC_DEFINE_UNQUOTED(USERLEN, 10, [Length of username/ident])
927     AC_DEFINE_UNQUOTED(HOSTLEN, 63, [Length of hostname. Updated to comply with RFC1123])
928 adx 30
929     AC_ARG_ENABLE(shared-modules,
930     AC_HELP_STRING([--disable-shared-modules],[ Disable shared modules.]),
931     [shared_modules=$enableval], [shared_modules="yes"])
932    
933     dnl Some first-stage sanity checks.
934     if test "$shared_modules" = yes; then
935    
936     if test "$profile" = "no"; then
937     shared_modules="yes"
938     else
939     AC_MSG_WARN([disabling shared modules; cannot coexist with profile builds])
940     shared_modules="no"
941     fi
942    
943     if test "$CYGWIN" = yes; then
944     AC_MSG_WARN([disabling shared modules; Cygwin is at present unable to build them.])
945     shared_modules="no"
946     fi
947    
948     dnl TenDRA's cc is called tcc too.
949     if test "$CC" = tcc -a "$TenDRA" = "no"; then
950     AC_MSG_WARN([disabling shared modules: Tiny C Compiler can't create PIC])
951     shared_modules="no"
952     fi
953     fi
954    
955     dnl Second stage: check for functions and headers.
956     if test "$shared_modules" = yes; then
957     DYNLINK_C=dynlink.c
958     AC_CHECK_HEADERS(dlfcn.h)
959     AC_SEARCH_LIBS(shl_load, dld,
960     [
961     AC_DEFINE(HAVE_SHL_LOAD, 1, [Define if the shl_load function is available.])
962     SUFFIX=".sl"
963     MOD_TARGET=hpux_shared
964     SEDOBJ="s/\.o/.sl/g"
965     ],
966     dnl !shl_load:
967     [
968     dnl standard dlopen
969     AC_SEARCH_LIBS(dlopen, [dl c_r],
970     [
971     AC_DEFINE(HAVE_DLOPEN, 1, [Define if the dlopen function is available.])
972     SUFFIX=".so"
973     MOD_TARGET=shared_modules
974     SEDOBJ="s/\.o/.so/g"
975     if test "$AppleGCC" = yes; then
976     AC_CHECK_HEADERS([mach-o/dyld.h])
977     fi
978     AC_CHECK_FUNC(dlsym, ,
979     [
980     AC_MSG_WARN([dlsym is not available, shared modules disabled])
981     shared_modules=no
982     ])
983 db 165 AC_CHECK_FUNCS(dlfunc dlinfo)
984 adx 30 ],
985     [
986     shared_modules=no
987     ])
988     ])
989     fi
990    
991     AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "$SUFFIX", [Suffix for shared libraries on this platform.])
992    
993     dnl Third stage - wrangling the linker.
994     if test "$shared_modules" = yes; then
995     # The GNU linker requires the -export-dynamic option to make
996     # all symbols visible in the dynamic symbol table.
997     hold_ldflags=$LDFLAGS
998     AC_MSG_CHECKING(for the ld -export-dynamic flag)
999     LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
1000     AC_LINK_IFELSE(AC_LANG_PROGRAM([],[int i;]), found=yes, found=no)
1001     LDFLAGS=$hold_ldflags
1002    
1003     if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
1004     found="no, IRIX ld uses -B,dynamic"
1005     LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
1006     fi
1007    
1008     AC_MSG_RESULT($found)
1009    
1010     if test "$found" = yes; then
1011     LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
1012     fi
1013    
1014     AC_MSG_CHECKING(for compiler option to produce PIC)
1015     dnl The order should be here to check for groups of compilers,
1016     dnl then for odd compilers, then if no PICFLAGS were set up,
1017     dnl check for GCC and set defaults, or else error. -jmallett
1018     if test "$SGS" = "yes"; then
1019     AC_MSG_RESULT([SVR4 SGS interfaces: -KPIC -DPIC -G])
1020     PICFLAGS="-KPIC -DPIC -G"
1021     fi
1022    
1023     if test "$AppleGCC" = "yes"; then
1024     AC_MSG_RESULT([Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress])
1025     PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
1026     fi
1027     dnl Please note, that on HPUX two different stages of module compilation occurs, since
1028     dnl while compiling modules, the compiler does not allow you to give arguments
1029     dnl to the linker. (I did not design this)
1030     dnl So we need -c in the first stage of module compilation.
1031     dnl In the second stage, we link the modules via ld -b.
1032     dnl Additionally, HPUX does not like -export-dynamic, it likes -E instead.
1033     dnl -TimeMr14C
1034     if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then
1035     AC_MSG_RESULT(HP-UX cc: +z -r -q -n)
1036     PICFLAGS="+z -r -q -n -c"
1037     AC_MSG_CHECKING([if +ESfic is required on this platform])
1038    
1039     if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
1040     AC_MSG_RESULT(no)
1041     else
1042     AC_MSG_RESULT(yes)
1043     PICFLAGS="$PICFLAGS +ESfic"
1044     fi
1045    
1046     LDFLAGS="${LDFLAGS} -Wl,-E"
1047     fi
1048     if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then
1049     AC_MSG_RESULT([Tru64: -shared -expect_unresolved '*'])
1050     PICFLAGS="-shared -expect_unresolved '*' "
1051     LDFLAGS="-call_shared"
1052     fi
1053     if test -z "$PICFLAGS"; then
1054     if test "$ac_cv_c_compiler_gnu" = "yes"; then
1055     AC_MSG_RESULT(gcc: -fPIC -DPIC -shared)
1056     PICFLAGS="-fPIC -DPIC -shared"
1057     else
1058     AC_MSG_RESULT(no)
1059     shared_modules=no
1060     fi
1061     fi
1062     fi
1063    
1064     if test "$shared_modules" = no; then
1065     DYNLINK_C=""
1066     MOD_TARGET="libmodules.a"
1067     MODULES_LIBS="../modules/libmodules.a"
1068     SEDOBJ=""
1069     AC_DEFINE(STATIC_MODULES, 1, [Define to 1 if dynamic modules can't be used.])
1070     AC_MSG_WARN([shared module support has been disabled!])
1071     fi
1072    
1073     AC_SUBST(MODULES_LIBS)
1074     AC_SUBST(MOD_TARGET)
1075    
1076     AC_SUBST(SSL_SRCS_ENABLE)
1077     AC_SUBST(SSL_INCLUDES)
1078     AC_SUBST(SSL_LIBS)
1079    
1080     AC_SUBST(PICFLAGS)
1081     AC_SUBST(IRC_CFLAGS)
1082     AC_SUBST(SEDOBJ)
1083    
1084     AC_SUBST(DYNLINK_C)
1085    
1086     if test "$prefix" = "NONE"; then
1087     AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$ac_default_prefix", [Prefix where the ircd is installed.])
1088    
1089     else
1090    
1091     dnl Don't get bitten by Cygwin's stupidity if the user specified
1092     dnl a custom prefix with a trailing slash
1093    
1094     prefix=`echo $prefix | sed 's/\/$//'`
1095     AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$prefix", [Prefix where the ircd is installed.])
1096    
1097     fi
1098    
1099     AC_CONFIG_FILES( \
1100     Makefile \
1101     etc/Makefile \
1102     servlink/Makefile \
1103     contrib/Makefile \
1104     contrib/help/Makefile \
1105     src/Makefile \
1106     messages/Makefile \
1107     modules/Makefile \
1108     tools/Makefile \
1109     doc/Makefile \
1110     help/Makefile \
1111 adx 61 libio/Makefile \
1112     libio/comm/Makefile \
1113     libio/mem/Makefile \
1114     libio/misc/Makefile \
1115     libio/net/Makefile \
1116     libio/string/Makefile
1117 adx 30 )
1118    
1119     AC_OUTPUT
1120    
1121     dnl Configure options probably changed
1122     rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend
1123    
1124     dnl Make it look sexay!
1125    
1126     echo
1127     echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
1128     echo
1129    
1130     echo "Installing into: $prefix"
1131    
1132     echo "Ziplinks ................ $zlib"
1133    
1134     if test ! -z "$cf_openssl_ciphers"; then
1135     tmpresult="yes - ${cf_openssl_ciphers}"
1136     else
1137     tmpresult=no
1138     fi
1139    
1140     echo "OpenSSL ................. $tmpresult"
1141    
1142     if test "$shared_modules" = yes; then
1143     tmpresult=shared
1144     else
1145     tmpresult=static
1146     fi
1147    
1148     echo "Modules ................. $tmpresult"
1149     echo "IPv6 support ............ $have_v6"
1150     echo "Net I/O implementation .. $SELECT_TYPE"
1151    
1152     if test "$efnet" = "yes"; then
1153     tmpresult="yes (use example.efnet.conf)"
1154     else
1155     tmpresult="no (use example.conf)"
1156     fi
1157    
1158     echo "EFnet server ............ $tmpresult"
1159     echo "Halfops support ......... $halfops"
1160     echo "Small network ........... $small_net"
1161     echo "G-Line voting ........... $gline_voting"
1162     echo
1163     echo "Configured limits:"
1164     echo "NICKLEN ................. $NICKLEN"
1165     echo "TOPICLEN ................ $TOPICLEN"
1166     echo

Properties

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