summaryrefslogtreecommitdiffstats
path: root/aclocal/ipv6.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal/ipv6.m4')
-rw-r--r--aclocal/ipv6.m420
1 files changed, 20 insertions, 0 deletions
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