diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 06:03:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 06:03:02 +0000 |
commit | 4897093455a2bf08f3db3a1132cc2f6f5484d77c (patch) | |
tree | 9e6373544263f003139431fb4b08f9766e1ed530 /aclocal/ipv6.m4 | |
parent | Initial commit. (diff) | |
download | nfs-utils-4897093455a2bf08f3db3a1132cc2f6f5484d77c.tar.xz nfs-utils-4897093455a2bf08f3db3a1132cc2f6f5484d77c.zip |
Adding upstream version 1:2.6.4.upstream/1%2.6.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'aclocal/ipv6.m4')
-rw-r--r-- | aclocal/ipv6.m4 | 20 |
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 |