diff options
| author | Vic Lee <llyzs@163.com> | 2010-06-29 20:51:08 +0800 |
|---|---|---|
| committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2010-07-08 10:06:17 +0200 |
| commit | 68e7696a27b31034876f594f242a229ff2b74fa4 (patch) | |
| tree | af218ea7055af0f06098cb3a1a89bc32f231cc33 /configure.ac | |
| parent | f76c81941a001bde59a9c4df5445569d2134ab5b (diff) | |
| download | libtdevnc-68e7696a27b31034876f594f242a229ff2b74fa4.tar.gz libtdevnc-68e7696a27b31034876f594f242a229ff2b74fa4.zip | |
libvncclient: add ipv6 support
[jes: pulled the "host" declarations into the conditionally compiled
blocks where that variable is used. Also fixed non-IPv6 connections.]
Signed-off-by: Vic Lee <llyzs@163.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6516523..b7cfcc1 100644 --- a/configure.ac +++ b/configure.ac @@ -697,6 +697,15 @@ if test "x$with_gnutls" != "xno"; then fi fi +# IPv6 +AH_TEMPLATE(IPv6, [Enable IPv6 support]) +AC_ARG_WITH(ipv6, +[ --without-ipv6 disable IPv6 support],,) +if test "x$with_ipv6" != "xno"; then + AC_CHECK_FUNC(getaddrinfo, AC_DEFINE(IPv6,1), + AC_CHECK_LIB(socket, getaddrinfo, AC_DEFINE(IPv6,1))) +fi + # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h]) |
