]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - configure.ac
Add ./configure --disable-ipv6 to use IPv4 only.
[tlsproxy/tlsproxy.git] / configure.ac
index 4a3786a9b70297e6a0cad0e2b87c3bacf7f3ea50..1717a3af2241045e332a72516667fe36e396ca13 100644 (file)
@@ -24,6 +24,13 @@ AC_ARG_ENABLE([debug],
                    AC_DEFINE([DEBUG], 1, [Define to enable debug output.])
                fi])
 
+AC_ARG_ENABLE([ipv6],
+              [AC_HELP_STRING([--disable-ipv6],
+                              [disable IPv6, for IPv4 only network stacks])],
+              [if test "x$enableval" = xno; then
+                   AC_DEFINE([USE_IPV4_ONLY], 1, [Define to not use IPv6.])
+               fi])
+
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
 AC_OUTPUT