From b39cc55d374457f66606096904af9fe7ea6562f6 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Wed, 15 Nov 2017 12:48:48 +0300 Subject: Add support of IPv6 disabling --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 38e3dd82..1ff861cd 100644 --- a/configure.ac +++ b/configure.ac @@ -193,6 +193,16 @@ AC_ARG_ENABLE([[epoll]], [enable_epoll='auto'] ) +AC_ARG_ENABLE([[ipv6]], + [AS_HELP_STRING([[--disable-ipv6[=ARG]]], [use ipv4 in tests (yes, no, auto) [auto]])], + [use_ipv6=${enableval}], + [use_ipv6='auto'] + ) + +if test "$use_ipv6" != "yes"; then + AC_DEFINE([USE_IPV6],[0],[define to 0 to force ipv4]) +fi + AX_HAVE_EPOLL if test "$enable_epoll" != "no"; then if test "${ax_cv_have_epoll}" = "yes"; then -- cgit v1.2.3