diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 38 |
2 files changed, 41 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2002-07-22 Jeffrey Stedfast <fejj@ximian.com> + + * configure.in: Add checks for IPv6 support. + 2002-07-30 Not Zed <NotZed@Ximian.com> * configure.in (EVOLUTION_MAIL): added soup to compile flags. diff --git a/configure.in b/configure.in index d809530fdb..2ae87ac430 100644 --- a/configure.in +++ b/configure.in @@ -167,7 +167,7 @@ AC_CACHE_CHECK([if ctime_r wants three arguments], ac_cv_ctime_r_three_args, ],[ char *buf; time_t date; - ctime_r( &date, buf, 100 ); + ctime_r (&date, buf, 100); ],[ ac_cv_ctime_r_three_args=yes ],[ @@ -245,6 +245,41 @@ if test "x$ac_cv_gethostbyaddr_r_seven_args" = "xyes" ; then AC_DEFINE(GETHOSTBYADDR_R_SEVEN_ARGS) fi + +dnl ************************************************** +dnl * IPv6 support +dnl ************************************************** +AC_ARG_ENABLE(ipv6, [ --enable-ipv6=[no/yes] Enable support for resolving IPv6 addresses.],,enable_ipv6=no) +if test "x$enable_ipv6" = "xyes"; then +AC_CACHE_CHECK([if system has necessary structs and functions for IPv6 support], msg_ipv6, +[ + AC_TRY_COMPILE([ + #include "confdefs.h" + #include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <netdb.h> + + ],[ + struct addrinfo hints, *res; + struct sockaddr_in6 sin6; + int af = AF_INET6; + + getaddrinfo ("www.ximian.com", NULL, &hints, &res); + freeaddrinfo (res); + ],[ + msg_ipv6=yes + ],[ + enable_ipv6=no + msg_ipv6=no + ]) +]) +else + msg_ipv6=no +fi +AM_CONDITIONAL(ENABLE_IPv6, test "x$enable_ipv6" = "xyes") + + dnl *********** dnl * db3 stuff dnl *********** @@ -1218,6 +1253,7 @@ echo "\ Pilot conduits: $msg_pilot Kerberos 4/5: $msg_krb4/$msg_krb5 SSL support: $msg_ssl + IPv6 support: $msg_ipv6 Dot Locking: $msg_dot File Locking: $msg_file Gtk-doc: $enable_gtk_doc |