File: ipv6.m4

package info (click to toggle)
nfs-utils 1%3A2.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,380 kB
  • sloc: ansic: 52,371; sh: 5,775; python: 2,166; makefile: 973
file content (20 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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