Skip to contentSkip to conversation

Introduce "--enable-ipv6" ./configure option

PATCH New Chuck Lever 1 participant 1 message Feb 18, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/17 Introduce "--enable-ipv6" ./configure option

I think we want to continue to allow nfs-utils to be built on systems that do not have any IPv6 development libraries and headers installed, so add a ./configure switch that allows distros to disable IPv6 functionality.

For now, it defaults to "yes" and is a no-op. As we add IPv6 functionality we can insert it behind this option.

---

 configure.ac |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
configure.ac +12 -0
index ab3198a..5a06971 100644
@@ -127,6 +127,18 @@ AC_ARG_ENABLE(mount,
 	enable_mount=$enableval,
 	enable_mount=yes)
 	AM_CONDITIONAL(CONFIG_MOUNT, [test "$enable_mount" = "yes"])
+AC_ARG_ENABLE(ipv6,
+	[AC_HELP_STRING([--enable-ipv6],
+                        [enable support for IPv6 @<:@default=yes@:>@])],
+	enable_ipv6=$enableval,
+	enable_ipv6=yes)
+	if test "$enable_ipv6" = yes; then
+		AC_DEFINE(IPV6_SUPPORTED, 1, [Define this if you want IPv6 support compiled in])
+	else
+		enable_ipv6=
+	fi
+	AC_SUBST(enable_ipv6)
+	AM_CONDITIONAL(CONFIG_IPV6, [test "$enable_ipv6" = "yes"])
 
 # Check whether user wants TCP wrappers support
 AC_TCP_WRAPPERS