diff options
| author | Florian Westphal <fw@strlen.de> | 2008-02-26 23:50:35 +0100 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2008-02-26 23:50:35 +0100 |
| commit | feb31e4200b42e0a5e9fb9637fa5f03c7ec05fcb (patch) | |
| tree | b572467ece1a378bc5939b7094c46f2e97fd1963 /configure.in | |
| parent | c31ad221a6cc48b709af056181d8d0be09898910 (diff) | |
| download | ngircd-feb31e4200b42e0a5e9fb9637fa5f03c7ec05fcb.tar.gz ngircd-feb31e4200b42e0a5e9fb9637fa5f03c7ec05fcb.zip | |
IPv6 support.
all references to struct sockaddr/in_addr have been removed from src/ngircd. libngipaddr (in src/ipaddr/) hides all the gory details. See src/ipaddr/ng_ipaddr.h for API description.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 51841e7a..d17bc15e 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ # (at your option) any later version. # Please read the file COPYING, README and AUTHORS for more information. # -# $Id: configure.in,v 1.125 2006/12/26 16:00:45 alex Exp $ +# $Id: configure.in,v 1.126 2008/02/26 22:04:15 fw Exp $ # # -- Initialisation -- @@ -30,6 +30,7 @@ AH_TEMPLATE([SYSLOG], [Define if syslog should be used for logging]) AH_TEMPLATE([ZLIB], [Define if zlib compression should be enabled]) AH_TEMPLATE([TCPWRAP], [Define if TCP wrappers should be used]) AH_TEMPLATE([IRCPLUS], [Define if IRC+ protocol should be used]) +AH_TEMPLATE([WANT_IPV6], [Define if IPV6 protocol should be enabled]) AH_TEMPLATE([ZEROCONF], [Define if support for Zeroconf should be included]) AH_TEMPLATE([IDENTAUTH], [Define if the server should do IDENT requests]) @@ -426,6 +427,19 @@ if test "$x_ircplus_on" = "yes"; then AC_DEFINE(IRCPLUS, 1) fi +# enable support for IPv6? +x_ipv6_on=no +AC_ARG_ENABLE(ipv6, + [ --enable-ipv6, enable IPv6 protocol support], + if test "$enableval" = "yes"; then x_ipv6_on=yes; fi +) +if test "$x_ipv6_on" = "yes"; then + AC_CHECK_FUNCS([ \ + getaddrinfo getnameinfo \ + ],,AC_MSG_ERROR([required function missing for IPv6 support!])) + AC_DEFINE(WANT_IPV6, 1) +fi + # compile in IRC "sniffer"? x_sniffer_on=no; x_debug_on=no @@ -477,6 +491,7 @@ AC_OUTPUT([ \ doc/src/Makefile \ src/Makefile \ src/portab/Makefile \ + src/ipaddr/Makefile \ src/tool/Makefile \ src/ngircd/Makefile \ src/testsuite/Makefile \ @@ -572,6 +587,8 @@ test "$x_identauth_on" = "yes" \ echo $ECHO_N " I/O backend: $ECHO_C" echo "\"$x_io_backend\"" +echo $ECHO_N " IPv6 protocol: $ECHO_C" +echo "$x_ipv6_on" echo # -eof- |