configure.in 15 KB

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