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