nfs-utils: fix AC_CHECK_FUNC calls in configure.ac
Subsystems (2)
PATCH 1/1 nfs-utils: fix AC_CHECK_FUNC calls in configure.ac
From: Jeff Layton <[email protected]>
AC_CHECK_FUNC and AC_CHECK_FUNCS take 3 args. Any ones beyond that are ignored. In several places, we're passing the "action-if-not-found" in as the 4th arg so it's being ignored.
---
Steve-
Thanks for committing the other patches. Here's one more nit that Jeff found recently.
aclocal/ipv6.m4 | 2 +- configure.ac | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
aclocal/ipv6.m4 +1 -1
@@ -15,7 +15,7 @@ AC_DEFUN([AC_IPV6], [ fi dnl IPv6-enabled networking functions required for IPv6 - AC_CHECK_FUNCS([getnameinfo bindresvport_sa], , , + AC_CHECK_FUNCS([getnameinfo bindresvport_sa], , [AC_MSG_ERROR([Missing functions needed for IPv6.])]) dnl Need to detect presence of IPv6 networking at run time via
configure.ac +3 -3
@@ -185,13 +185,13 @@ AC_CHECK_FUNC([connect], , [AC_CHECK_LIB([socket], [connect], [LIBSOCKET="-lsocket"], [AC_MSG_ERROR([Function 'socket' not found.])], [$LIBNSL])]) -AC_CHECK_FUNC([getaddrinfo], , , +AC_CHECK_FUNC([getaddrinfo], , [AC_MSG_ERROR([Function 'getaddrinfo' not found.])]) -AC_CHECK_FUNC([getrpcbynumber], , , +AC_CHECK_FUNC([getrpcbynumber], , [AC_MSG_ERROR([Function 'getrpcbynumber' not found.])]) -AC_CHECK_FUNC([getservbyname], , , +AC_CHECK_FUNC([getservbyname], , [AC_MSG_ERROR([Function 'getservbyname' not found.])]) AC_CHECK_LIB([crypt], [crypt], [LIBCRYPT="-lcrypt"])
A message that is not in the archive (sent off-list or not yet received): 20090316185007.13728.1047.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org
Quoted 44 lines · Chuck Lever
From: Jeff Layton <[email protected]>
AC_CHECK_FUNCandAC_CHECK_FUNCStake 3 args. Any ones beyond that are ignored. In several places, we're passing the "action-if-not-found" in as the 4th arg so it's being ignored.Signed-off-by Jeff Layton <[email protected]>Signed-off-by Chuck Lever <[email protected]>---
Steve-
Thanks for committing the other patches. Here's one more nit that Jeff found recently.
aclocal/ipv6.m4 | 2 +- configure.ac | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)aclocal/ipv6.m4 +1
-1@@ -15,7 +15,7 @@ AC_DEFUN([AC_IPV6], [ fi dnl IPv6-enabled networking functions required for IPv6 - AC_CHECK_FUNCS([getnameinfo bindresvport_sa], , , + AC_CHECK_FUNCS([getnameinfo bindresvport_sa], , [AC_MSG_ERROR([Missing functions needed for IPv6.])]) dnl Need to detect presence of IPv6 networking at run time viaconfigure.ac +1
-1@@ -185,13 +185,13 @@ AC_CHECK_FUNC([connect], , [AC_CHECK_LIB([socket], [connect], [LIBSOCKET="-lsocket"], [AC_MSG_ERROR([Function 'socket' not found.])], [$LIBNSL])]) -AC_CHECK_FUNC([getaddrinfo], , , +AC_CHECK_FUNC([getaddrinfo], , [AC_MSG_ERROR([Function 'getaddrinfo' not found.])])
configure.ac AC_CHECK_FUNC([connect], , · line 197
Quoted 10 lines
configure.ac +2
-2-AC_CHECK_FUNC([getrpcbynumber], , , +AC_CHECK_FUNC([getrpcbynumber], , [AC_MSG_ERROR([Function 'getrpcbynumber' not found.])]) -AC_CHECK_FUNC([getservbyname], , , +AC_CHECK_FUNC([getservbyname], , [AC_MSG_ERROR([Function 'getservbyname' not found.])]) AC_CHECK_LIB([crypt], [crypt], [LIBCRYPT="-lcrypt"])
Committed..
steved