diff options
-rw-r--r-- | configure.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 9cf7509b64..c204649411 100644 --- a/configure.in +++ b/configure.in @@ -271,7 +271,6 @@ AC_CACHE_CHECK([if system has necessary structs and functions for IPv6 support], getaddrinfo ("www.ximian.com", NULL, &hints, &res); freeaddrinfo (res); ],[ - AC_DEFINE(ENABLE_IPv6,1,[Enable IPv6 support]) msg_ipv6=yes ],[ enable_ipv6=no @@ -281,6 +280,10 @@ AC_CACHE_CHECK([if system has necessary structs and functions for IPv6 support], else msg_ipv6=no fi + +if test "x$enable_ipv6" = "xyes"; then + AC_DEFINE(ENABLE_IPv6,1,[Enable IPv6 support]) +fi AM_CONDITIONAL(ENABLE_IPv6, test "x$enable_ipv6" = "xyes") |