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