]> arthur.barton.de Git - ngircd-alex.git/blob - configure.in
Use AM_SILENT_RULES([yes]), if available
[ngircd-alex.git] / configure.in
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001-2008 Alexander Barton <alex@barton.de>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 # Please read the file COPYING, README and AUTHORS for more information.
10 #
11
12 # -- Initialisation --
13
14 AC_PREREQ(2.50)
15 AC_INIT(ngircd, 14.1)
16 AC_CONFIG_SRCDIR(src/ngircd/ngircd.c)
17 AC_CANONICAL_TARGET
18 AM_INIT_AUTOMAKE(1.6)
19 AM_CONFIG_HEADER(src/config.h)
20
21 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
22
23 # -- Templates for config.h --
24
25 AH_TEMPLATE([DEBUG], [Define if debug-mode should be enabled])
26 AH_TEMPLATE([HAVE_socklen_t], [Define if socklen_t exists])
27 AH_TEMPLATE([SNIFFER], [Define if IRC sniffer should be enabled])
28 AH_TEMPLATE([STRICT_RFC], [Define if ngIRCd should behave strict RFC compliant])
29 AH_TEMPLATE([SYSLOG], [Define if syslog should be used for logging])
30 AH_TEMPLATE([ZLIB], [Define if zlib compression should be enabled])
31 AH_TEMPLATE([TCPWRAP], [Define if TCP wrappers should be used])
32 AH_TEMPLATE([IRCPLUS], [Define if IRC+ protocol should be used])
33 AH_TEMPLATE([WANT_IPV6], [Define if IPV6 protocol should be enabled])
34 AH_TEMPLATE([ZEROCONF], [Define if support for Zeroconf should be included])
35 AH_TEMPLATE([IDENTAUTH], [Define if the server should do IDENT requests])
36
37 AH_TEMPLATE([TARGET_OS], [Target operating system name])
38 AH_TEMPLATE([TARGET_VENDOR], [Target system vendor])
39 AH_TEMPLATE([TARGET_CPU], [Target CPU name])
40
41 # -- C Compiler --
42
43 AC_PROG_CC
44
45 # -- Helper programs --
46
47 AC_PROG_AWK
48 AC_PROG_INSTALL
49 AC_PROG_LN_S
50 AC_PROG_MAKE_SET
51 AC_PROG_RANLIB
52
53 # -- Compiler Features --
54
55 AM_C_PROTOTYPES
56 AC_C_CONST
57 AC_C_INLINE
58
59 # -- Hard coded system and compiler dependencies/features/options ... --
60
61 AC_DEFUN([GCC_STACK_PROTECT_CC],[
62   ssp_cc=yes
63   # we use -fstack-protector-all for the test to enfoce the use of the guard variable 
64   AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
65   ssp_old_cflags="$CFLAGS"
66   CFLAGS="$CFLAGS -fstack-protector-all"
67   AC_TRY_LINK(,,, ssp_cc=no)
68   echo $ssp_cc
69   CFLAGS="$ssp_old_cflags"
70   if test "X$ssp_cc" = "Xyes"; then
71       CFLAGS="$CFLAGS -fstack-protector"
72       AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
73   fi
74 ])
75
76
77 if test "$GCC" = "yes"; then
78         # We are using the GNU C compiler. Good!
79         CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
80
81         GCC_STACK_PROTECT_CC
82 fi
83
84 case "$target_os" in
85         hpux*)
86                 # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
87                 # (tested with HP/UX 11.11)
88                 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
89                 ;;
90 esac
91
92 # Add additional CFLAGS, eventually specified on the command line:
93 test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
94
95 CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
96
97 # -- Headers --
98
99 AC_HEADER_STDC
100 AC_HEADER_TIME
101 AC_HEADER_SYS_WAIT
102
103 AC_CHECK_HEADERS([ \
104         ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \
105         strings.h sys/socket.h sys/time.h unistd.h \
106         ],,AC_MSG_ERROR([required C header missing!]))
107
108 AC_CHECK_HEADERS([arpa/inet.h ctype.h malloc.h stdbool.h stddef.h varargs.h])
109
110 # -- Datatypes --
111
112 AC_MSG_CHECKING(whether socklen_t exists)
113 AC_TRY_COMPILE([
114 #include <sys/types.h>
115 #include <sys/socket.h>
116         ],[
117         socklen_t a, b;
118         a = 2; b = 4; a += b;
119         ],[
120         AC_DEFINE(HAVE_socklen_t) AC_MSG_RESULT(yes)
121         ],[
122         AC_MSG_RESULT(no)
123 ])
124
125 AC_TYPE_SIGNAL
126 AC_TYPE_SIZE_T
127
128
129 # -- Libraries --
130
131 AC_CHECK_LIB(UTIL,memmove)
132 AC_CHECK_LIB(socket,bind)
133 AC_CHECK_LIB(nsl,gethostent)
134
135 # -- Functions --
136
137 AC_FUNC_FORK
138 AC_FUNC_STRFTIME
139
140 AC_CHECK_FUNCS([ \
141         bind gethostbyaddr gethostbyname gethostname inet_ntoa \
142         setsid setsockopt socket strcasecmp waitpid],,AC_MSG_ERROR([required function missing!]))
143
144 AC_CHECK_FUNCS(inet_aton isdigit sigaction snprintf vsnprintf strdup strlcpy strlcat strtok_r)
145
146 # -- Configuration options --
147
148 # use syslog?
149
150 x_syslog_on=no
151 AC_ARG_WITH(syslog,
152         [  --without-syslog        disable syslog (autodetected by default)],
153         [       if test "$withval" != "no"; then
154                         if test "$withval" != "yes"; then
155                                 CFLAGS="-I$withval/include $CFLAGS"
156                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
157                                 LDFLAGS="-L$withval/lib $LDFLAGS"
158                         fi
159                         AC_CHECK_LIB(be, syslog)
160                         AC_CHECK_FUNCS(syslog, x_syslog_on=yes,
161                                 AC_MSG_ERROR([Can't enable syslog!])
162                         )
163                 fi
164         ],
165         [
166                 AC_CHECK_LIB(be, syslog)
167                 AC_CHECK_FUNCS(syslog, x_syslog_on=yes)
168         ]
169 )
170 if test "$x_syslog_on" = "yes"; then
171         AC_DEFINE(SYSLOG, 1)
172         AC_CHECK_HEADERS(syslog.h,,AC_MSG_ERROR([required C header missing!]))
173 fi
174
175 # use zlib compression?
176
177 x_zlib_on=no
178 AC_ARG_WITH(zlib,
179         [  --without-zlib          disable zlib compression (autodetected by default)],
180         [       if test "$withval" != "no"; then
181                         if test "$withval" != "yes"; then
182                                 CFLAGS="-I$withval/include $CFLAGS"
183                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
184                                 LDFLAGS="-L$withval/lib $LDFLAGS"
185                         fi
186                         AC_CHECK_LIB(z, deflate)
187                         AC_CHECK_FUNCS(deflate, x_zlib_on=yes,
188                                 AC_MSG_ERROR([Can't enable zlib!])
189                         )
190                 fi
191         ],
192         [       AC_CHECK_LIB(z, deflate)
193                 AC_CHECK_FUNCS(deflate, x_zlib_on=yes)
194         ]
195 )
196 if test "$x_zlib_on" = "yes"; then
197         AC_DEFINE(ZLIB, 1)
198         AC_CHECK_HEADERS(zlib.h,,AC_MSG_ERROR([required C header missing!]))
199 fi
200
201 # detect which IO API to use:
202
203 x_io_backend=none
204
205 AC_ARG_WITH(select,
206         [  --without-select        disable select IO support (autodetected by default)],
207         [       if test "$withval" != "no"; then
208                         if test "$withval" != "yes"; then
209                                 CFLAGS="-I$withval/include $CFLAGS"
210                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
211                                 LDFLAGS="-L$withval/lib $LDFLAGS"
212                         fi
213                         AC_CHECK_FUNCS(select, x_io_select=yes,
214                                 AC_MSG_ERROR([Can't enable select IO support!])
215                         )
216                 fi
217         ],
218         [
219                 AC_CHECK_FUNCS(select, x_io_select=yes)
220         ]
221 )
222
223 AC_ARG_WITH(poll,
224         [  --without-poll          disable poll support (autodetected by default)],
225         [       if test "$withval" != "no"; then
226                         if test "$withval" != "yes"; then
227                                 CFLAGS="-I$withval/include $CFLAGS"
228                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
229                                 LDFLAGS="-L$withval/lib $LDFLAGS"
230                         fi
231                         AC_CHECK_FUNCS(poll, x_io_backend=poll\(\),
232                                 AC_MSG_ERROR([Can't enable poll IO support!])
233                         )
234                 fi
235         ],
236         [
237                 AC_CHECK_FUNCS(poll, x_io_backend=poll\(\))
238         ]
239 )
240
241 AC_ARG_WITH(devpoll,
242         [  --without-devpoll       disable /dev/poll IO support (autodetected by default)],
243         [       if test "$withval" != "no"; then
244                         if test "$withval" != "yes"; then
245                                 CFLAGS="-I$withval/include $CFLAGS"
246                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
247                                 LDFLAGS="-L$withval/lib $LDFLAGS"
248                         fi
249
250                                 AC_CHECK_HEADERS(sys/devpoll.h,,AC_MSG_ERROR([required C header missing!]))
251                 fi
252         ],
253         [
254                 AC_CHECK_HEADERS(sys/devpoll.h, x_io_backend=/dev/poll)
255         ]
256 )
257
258 AC_ARG_WITH(epoll,
259         [  --without-epoll         disable epoll IO support (autodetected by default)],
260         [       if test "$withval" != "no"; then
261                         if test "$withval" != "yes"; then
262                                 CFLAGS="-I$withval/include $CFLAGS"
263                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
264                                 LDFLAGS="-L$withval/lib $LDFLAGS"
265                         fi
266                         AC_CHECK_FUNCS(epoll_create, x_io_epoll=yes,
267                                 AC_MSG_ERROR([Can't enable epoll IO support!])
268                         )
269                 fi
270         ],
271         [
272                 AC_CHECK_FUNCS(epoll_create, x_io_epoll=yes)
273         ]
274 )
275
276 AC_ARG_WITH(kqueue,
277         [  --without-kqueue        disable kqueue IO support (autodetected by default)],
278         [       if test "$withval" != "no"; then
279                         if test "$withval" != "yes"; then
280                                 CFLAGS="-I$withval/include $CFLAGS"
281                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
282                                 LDFLAGS="-L$withval/lib $LDFLAGS"
283                         fi
284                         AC_CHECK_FUNCS(kqueue, x_io_backend=kqueue\(\),
285                                 AC_MSG_ERROR([Can't enable kqueue IO support!])
286                         )
287                 fi
288         ],
289         [
290                 AC_CHECK_FUNCS(kqueue, x_io_backend=kqueue\(\))
291         ]
292 )
293
294 if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
295         # when epoll() and select() are available, we'll use both!
296         x_io_backend="epoll(), select()"
297 else
298         if test "$x_io_epoll" = "yes"; then
299                 # we prefere epoll() if it is available
300                 x_io_backend="epoll()"
301         else
302                 if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
303                         # we'll use select, when available and no "better"
304                         # interface has been detected ...
305                         x_io_backend="select()"
306                 fi
307         fi
308 fi
309
310 if test "$x_io_backend" = "none"; then
311         AC_MSG_ERROR([No useabe IO API activated/found!?])
312 fi
313
314 # use SSL?
315
316 AC_ARG_WITH(openssl,
317         [  --with-openssl          enable SSL support using OpenSSL],
318         [       if test "$withval" = "yes"; then
319                         if test "$withval" != "yes"; then
320                                 CFLAGS="-I$withval/include $CFLAGS"
321                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
322                                 LDFLAGS="-L$withval/lib $LDFLAGS"
323                         fi
324                         AC_CHECK_LIB(crypto, BIO_s_mem)
325                         AC_CHECK_LIB(ssl, SSL_library_init)
326                         AC_CHECK_FUNCS(SSL_library_init, x_ssl_openssl=yes,
327                                 AC_MSG_ERROR([Can't enable openssl])
328                         )
329                 fi
330         ]
331 )
332
333 AC_ARG_WITH(gnutls,
334         [  --with-gnutls           enable SSL support using gnutls],
335         [       if test "$withval" = "yes"; then
336                         if test "$withval" != "yes"; then
337                                 CFLAGS="-I$withval/include $CFLAGS"
338                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
339                                 LDFLAGS="-L$withval/lib $LDFLAGS"
340                         fi
341                         AC_CHECK_LIB(gnutls, gnutls_global_init)
342                         AC_CHECK_FUNCS(gnutls_global_init, x_ssl_gnutls=yes,
343                                 AC_MSG_ERROR([Can't enable gnutls])
344                         )
345                 fi
346         ]
347 )
348
349 x_ssl_lib="no"
350 if test "$x_ssl_gnutls" = "yes"; then
351         if test "$x_ssl_openssl" = "yes";then
352                 AC_MSG_ERROR([Cannot enable both gnutls and openssl])
353         fi
354         x_ssl_lib=gnutls
355 fi
356 if test "$x_ssl_openssl" = "yes"; then
357         x_ssl_lib=openssl
358 fi
359
360 # use TCP wrappers?
361
362 x_tcpwrap_on=no
363 AC_ARG_WITH(tcp-wrappers,
364         [  --with-tcp-wrappers     enable TCP wrappers support],
365         [       if test "$withval" != "no"; then
366                         if test "$withval" != "yes"; then
367                                 CFLAGS="-I$withval/include $CFLAGS"
368                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
369                                 LDFLAGS="-L$withval/lib $LDFLAGS"
370                         fi
371                         AC_MSG_CHECKING(for hosts_access)
372                         LIBS="-lwrap $LIBS"
373                         AC_TRY_LINK([
374 #include <tcpd.h>
375 int allow_severity = 0;
376 int deny_severity = 0;
377                                 ],[
378                                 tcpd_warn("link test");
379                                 ],[
380                                 AC_MSG_RESULT(yes)
381                                 AC_DEFINE(TCPWRAP, 1)
382                                 x_tcpwrap_on=yes
383                                 ],[
384                                 AC_MSG_RESULT(no)
385                                 AC_MSG_ERROR([Can't enable TCP wrappers!])
386                         ])
387                 fi
388         ]
389 )
390
391 # include support for "zeroconf"?
392
393 x_zeroconf_on=no
394 AC_ARG_WITH(zeroconf,
395         [  --with-zeroconf         enable support for "Zeroconf"],
396         [       if test "$withval" != "no"; then
397                         if test "$withval" != "yes"; then
398                                 CFLAGS="-I$withval/include $CFLAGS"
399                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
400                                 LDFLAGS="-L$withval/lib $LDFLAGS"
401                         fi
402                         AC_CHECK_FUNCS(DNSServiceRegistrationCreate, x_zeroconf_on=osx,
403                         [
404                                 AC_CHECK_LIB(pthread, pthread_mutexattr_init)
405                                 AC_CHECK_LIB(howl, sw_discovery_init)
406                                 AC_CHECK_FUNCS(sw_discovery_init, \
407                                  x_zeroconf_on=howl, \
408                                  AC_MSG_ERROR([Can't enable Zeroconf!]))
409                         ])
410                 fi
411         ]
412 )
413 if test "$x_zeroconf_on" = "osx"; then
414         AC_CHECK_HEADERS([DNSServiceDiscovery/DNSServiceDiscovery.h \
415          mach/port.h],,AC_MSG_ERROR([required C header missing!]))
416         AC_DEFINE(ZEROCONF, 1)
417 fi
418 if test "$x_zeroconf_on" = "howl"; then
419         for dir in /usr/local/include /usr/local/include/howl* \
420          /usr/include /usr/include/howl* \
421          /usr/local/include/avahi* /usr/include/avahi*; do
422                 test -d "$dir" || continue
423                 AC_MSG_CHECKING([for Howl headers in $dir])
424                 if test -f "$dir/rendezvous/rendezvous.h"; then
425                         if test "$dir" != "/usr/local/include" -a \
426                          "$dir" != "/usr/include"; then
427                                 CFLAGS="-I$dir $CFLAGS"
428                                 CPPFLAGS="-I$dir $CPPFLAGS"
429                         fi
430                         AC_MSG_RESULT(yes)
431                         break
432                 else
433                         AC_MSG_RESULT(no)
434                 fi
435         done
436         AC_CHECK_HEADERS([rendezvous/rendezvous.h],, \
437          AC_MSG_ERROR([required C header missing!]))
438         AC_DEFINE(ZEROCONF, 1)
439 fi
440
441 # do IDENT requests using libident?
442
443 x_identauth_on=no
444 AC_ARG_WITH(ident,
445         [  --with-ident            enable "IDENT" ("AUTH") protocol support],
446         [       if test "$withval" != "no"; then
447                         if test "$withval" != "yes"; then
448                                 CFLAGS="-I$withval/include $CFLAGS"
449                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
450                                 LDFLAGS="-L$withval/lib $LDFLAGS"
451                         fi
452                         AC_CHECK_LIB(ident, ident_id)
453                         AC_CHECK_FUNCS(ident_id, x_identauth_on=yes,
454                                 AC_MSG_ERROR([Can't enable IDENT support!])
455                         )
456                 fi
457         ]
458 )
459 if test "$x_identauth_on" = "yes"; then
460         AC_DEFINE(IDENTAUTH, 1)
461         AC_CHECK_HEADERS(ident.h,,AC_MSG_ERROR([required C header missing!]))
462 fi
463
464 # compile in IRC+ protocol support?
465
466 x_ircplus_on=yes
467 AC_ARG_ENABLE(ircplus,
468         [  --disable-ircplus       disable IRC+ protocol],
469         if test "$enableval" = "no"; then x_ircplus_on=no; fi
470 )
471 if test "$x_ircplus_on" = "yes"; then
472         AC_DEFINE(IRCPLUS, 1)
473 fi
474
475 # enable support for IPv6?
476 x_ipv6_on=no
477 AC_ARG_ENABLE(ipv6,
478         [  --enable-ipv6           enable IPv6 protocol support],
479         if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
480 )
481 if test "$x_ipv6_on" = "yes"; then
482         AC_CHECK_FUNCS([ \
483                 getaddrinfo getnameinfo \
484                 ],,AC_MSG_ERROR([required function missing for IPv6 support!]))
485         AC_DEFINE(WANT_IPV6, 1)
486 fi
487
488 # compile in IRC "sniffer"?
489
490 x_sniffer_on=no; x_debug_on=no
491 AC_ARG_ENABLE(sniffer,
492         [  --enable-sniffer        enable IRC traffic sniffer (enables debug mode)],
493         if test "$enableval" = "yes"; then
494                 AC_DEFINE(SNIFFER, 1)
495                 x_sniffer_on=yes; x_debug_on=yes
496         fi
497 )
498
499 # enable additional debugging code?
500
501 AC_ARG_ENABLE(debug,
502         [  --enable-debug          show additional debug output],
503         if test "$enableval" = "yes"; then x_debug_on=yes; fi
504 )
505 if test "$x_debug_on" = "yes"; then
506         AC_DEFINE(DEBUG, 1)
507         test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
508         AC_CHECK_FUNCS(mtrace)
509 fi
510
511 # enable "strict RFC rules"?
512
513 x_strict_rfc_on=no
514 AC_ARG_ENABLE(strict-rfc,
515         [  --enable-strict-rfc     strict RFC conformance -- may break clients!],
516         if test "$enableval" = "yes"; then
517                 AC_DEFINE(STRICT_RFC, 1)
518                 x_strict_rfc_on=yes
519         fi
520 )
521
522 # -- Definitions --
523
524 AC_DEFINE_UNQUOTED(TARGET_CPU, "$target_cpu" )
525 AC_DEFINE_UNQUOTED(TARGET_VENDOR, "$target_vendor" )
526 AC_DEFINE_UNQUOTED(TARGET_OS, "$target_os" )
527
528 # Add additional CFLAGS, eventually specified on the command line, but after
529 # running this configure script. Useful for "-Werror" for example.
530 test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
531
532 # -- Generate files --
533
534 AC_OUTPUT([ \
535         Makefile \
536         doc/Makefile \
537         doc/src/Makefile \
538         src/Makefile \
539         src/portab/Makefile \
540         src/ipaddr/Makefile \
541         src/tool/Makefile \
542         src/ngircd/Makefile \
543         src/testsuite/Makefile \
544         man/Makefile \
545         contrib/Makefile \
546         contrib/Debian/Makefile \
547         contrib/MacOSX/Makefile \
548         contrib/MacOSX/ngIRCd.xcodeproj/Makefile \
549         contrib/MacOSX/ngIRCd.pmdoc/Makefile \
550 ])
551
552 type dpkg >/dev/null 2>&1
553 if test $? -eq 0; then
554         # Generate debian/ link if the dpkg command exists
555         # (read: if we are running on a debian compatible system)
556         echo "creating Debian-specific links ..."
557         test -f debian/rules || ln -s contrib/Debian debian
558 fi
559
560 # -- Result --
561
562 echo
563 echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
564 echo
565
566 # Someone please show me a better way :)  [borrowed by OpenSSH]
567 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
568 S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
569 C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
570 M=`eval echo ${mandir}` ; M=`eval echo ${M}`
571 D=`eval echo ${datadir}/doc/${PACKAGE}` ; D=`eval echo ${D}`
572
573 echo "             Target: ${target}"
574 test "$target" != "$host" && echo "               Host: ${host}"
575 echo "           Compiler: ${CC}"
576 test -n "$CFLAGS"       && echo "     Compiler flags: ${CFLAGS}"
577 test -n "$CPPFLAGS"     && echo " Preprocessor flags: ${CPPFLAGS}"
578 test -n "$LDFLAGS"      && echo "       Linker flags: ${LDFLAGS}"
579 test -n "$LIBS"         && echo "          Libraries: ${LIBS}"
580 echo
581 echo "    'ngircd' binary: $S"
582 echo " Configuration file: $C"
583 echo "       Manual pages: $M"
584 echo "      Documentation: $D"
585 echo
586
587 echo $ECHO_N "     Syslog support: $ECHO_C"
588 test "$x_syslog_on" = "yes" \
589         && echo $ECHO_N "yes   $ECHO_C" \
590         || echo $ECHO_N "no    $ECHO_C"
591 echo $ECHO_N "  Enable debug code: $ECHO_C"
592 test "$x_debug_on" = "yes" \
593         && echo "yes" \
594         || echo "no"
595
596 echo $ECHO_N "   zlib compression: $ECHO_C"
597 test "$x_zlib_on" = "yes" \
598         && echo $ECHO_N "yes   $ECHO_C" \
599         || echo $ECHO_N "no    $ECHO_C"
600 echo $ECHO_N "        IRC sniffer: $ECHO_C"
601 test "$x_sniffer_on" = "yes" \
602         && echo "yes" \
603         || echo "no"
604
605 echo $ECHO_N "   Use TCP Wrappers: $ECHO_C"
606 test "$x_tcpwrap_on" = "yes" \
607         && echo $ECHO_N "yes   $ECHO_C" \
608         || echo $ECHO_N "no    $ECHO_C"
609 echo $ECHO_N "    Strict RFC mode: $ECHO_C"
610 test "$x_strict_rfc_on" = "yes" \
611         && echo "yes" \
612         || echo "no"
613
614 echo $ECHO_N "   Zeroconf support: $ECHO_C"
615 case "$x_zeroconf_on" in
616         osx)
617                 echo $ECHO_N "Apple $ECHO_C"
618                 ;;
619         howl)
620                 echo $ECHO_N "Howl  $ECHO_C"
621                 ;;
622         *)
623                 echo $ECHO_N "no    $ECHO_C"
624                 ;;
625 esac
626 echo $ECHO_N "      IRC+ protocol: $ECHO_C"
627 test "$x_ircplus_on" = "yes" \
628         && echo "yes" \
629         || echo "no"
630
631 echo $ECHO_N "      IDENT support: $ECHO_C"
632 test "$x_identauth_on" = "yes" \
633         && echo $ECHO_N "yes   $ECHO_C" \
634         || echo $ECHO_N "no    $ECHO_C"
635 echo $ECHO_N "        I/O backend: $ECHO_C"
636         echo "\"$x_io_backend\""
637
638 echo $ECHO_N "      IPv6 protocol: $ECHO_C"
639 echo $ECHO_N "$x_ipv6_on    $ECHO_C"
640
641 echo $ECHO_N "        SSL support: $ECHO_C"
642 echo "$x_ssl_lib"
643
644 echo
645
646 # -eof-