Commit 91d3d7d6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added --enable-ipv6 switch. Check for inet_ntop, inet_pton,

getipnodebyname, gethostbyname2, and struct sockaddr_storage.
parent f4273045
......@@ -19,7 +19,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl Process this file with autoconf to produce a configure script.
AC_REVISION($Revision: 1.19 $)dnl
AC_REVISION($Revision: 1.20 $)dnl
AC_PREREQ(2.56)
AC_INIT([isc],[1.01])
AC_CONFIG_SRCDIR([src/isc_master.c])
......@@ -42,6 +42,11 @@ AC_HELP_STRING([--with-optimization@<:@=N@:>@],[specify level of optimization]),
[opt_level=$withval],
[opt_level=""])
AC_ARG_ENABLE([ipv6],
AC_HELP_STRING([--enable-ipv6], [enable IPv6 support]),
[use_inet6=yes],
[use_inet6=no])
dnl Checks for programs.
......@@ -179,6 +184,34 @@ then]
[fi]
dnl Checks for IPv6 support
AC_CHECK_FUNCS(inet_ntop,
,
[if test "$use_inet6" = 'yes'; then]
AC_MSG_WARN(Proper decoding of IPv6 addresses requires inet_ntop)
[fi]
)
AC_CHECK_FUNCS(inet_pton,
,
[if test "$use_inet6" = 'yes'; then]
AC_MSG_WARN(Proper encoding of IPv6 addresses requires inet_pton)
[fi]
)
AC_CHECK_FUNCS(getipnodebyname gethostbyname2)
AC_CHECK_TYPES(struct sockaddr_storage,
[if test "$use_inet6" = 'yes'; then]
AC_DEFINE(USE_INET6)
AC_MSG_NOTICE([IPv6 support is enabled])
[else]
AC_MSG_NOTICE([IPv6 support is disabled])
[fi],
[if test "$use_inet6" = 'yes'; then]
AC_MSG_ERROR([IPv6 support requires struct sockaddr_storage])
[fi],
[#include <sys/socket.h>])
[if test "$use_gcov" = "yes" -a -n "$GCC"; then]
CMOD_CHECK_CC_OPT([-ftest-coverage], [test_coverage])
CMOD_CHECK_CC_OPT([-fprofile-arcs], [profile_arcs])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment