Clean up the ipv6 check a little.

This commit is contained in:
Bill Currie 2011-07-23 09:55:27 +09:00
parent 02a5a2008d
commit f8d8395cf0

View file

@ -5,8 +5,10 @@ dnl ==================================================================
LIBCURL_CHECK_CONFIG([], [], [CURL=yes], [])
AC_ARG_WITH(ipv6,
[ --with-ipv6=DIR enable IPv6 support. Optional argument specifies
location of inet6 libraries.],
AS_HELP_STRING([--with-ipv6=DIR],
[Eenable IPv6 support.]
[Optional argument specifies location of inet6 libraries.]),
[
if test "x$withval" = xno ; then
NETTYPE_IPV6=no
else
@ -16,8 +18,8 @@ AC_ARG_WITH(ipv6,
LIBS="$LIBS -L${withval}"
fi
fi
,
NETTYPE_IPV6=no
],
[NETTYPE_IPV6=no]
)
AM_CONDITIONAL(NETTYPE_IPV6, test "x$NETTYPE_IPV6" = "xyes")