From 4897093455a2bf08f3db3a1132cc2f6f5484d77c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 08:03:02 +0200 Subject: Adding upstream version 1:2.6.4. Signed-off-by: Daniel Baumann --- aclocal/ipv6.m4 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 aclocal/ipv6.m4 (limited to 'aclocal/ipv6.m4') diff --git a/aclocal/ipv6.m4 b/aclocal/ipv6.m4 new file mode 100644 index 0000000..75a8582 --- /dev/null +++ b/aclocal/ipv6.m4 @@ -0,0 +1,20 @@ +dnl Checks for IPv6 support +dnl +AC_DEFUN([AC_IPV6], [ + + if test "$enable_ipv6" = yes; then + + dnl TI-RPC required for IPv6 + if test "$enable_tirpc" = no; then + AC_MSG_ERROR(['--enable-ipv6' requires TIRPC support.]) + fi + + dnl IPv6-enabled networking functions required for IPv6 + AC_CHECK_FUNCS([getifaddrs getnameinfo], , + [AC_MSG_ERROR([Missing library functions needed for IPv6.])]) + + AC_CHECK_LIB([tirpc], [bindresvport_sa], [:], + [AC_MSG_ERROR([Missing library functions needed for IPv6.])]) + fi + +])dnl -- cgit v1.2.3