diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-07-15 12:15:29 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-07-15 12:15:29 -0400 |
commit | 46c6575fe23a7468c17ec3329d956e9d3afe60e8 (patch) | |
tree | 19e0bbe1b89e628e52d4b6fa6203c2e5871360fb | |
parent | 1ca49510fd1742955330583f259db7faf501a5e5 (diff) | |
download | nfs-utils-46c6575fe23a7468c17ec3329d956e9d3afe60e8.tar.gz nfs-utils-46c6575fe23a7468c17ec3329d956e9d3afe60e8.tar.xz nfs-utils-46c6575fe23a7468c17ec3329d956e9d3afe60e8.zip |
Lots of parts of nfs-utils already depend on getaddrinfo(3).
We could find each instance where getaddrinfo(3) is invoked, wrap it with
'#ifdef HAVE_GETADDRINFO', and provide equivalent logic without it, but that's
a whole lot of work... and no-one has complained about this so far.
So as a clean-up, let's simply add a hard dependency for it in configure.ac,
and call it a day.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6ecbf55..d508c28 100644 --- a/configure.ac +++ b/configure.ac @@ -172,6 +172,9 @@ AC_CHECK_FUNC(connect, , AC_CHECK_LIB(socket, connect, [LIBSOCKET="-lsocket"], AC_MSG_ERROR(Function 'socket' not found.), $LIBNSL)) +AC_CHECK_FUNC(getaddrinfo, , , + AC_MSG_ERROR(Function 'getaddrinfo' not found.)) + AC_CHECK_LIB(crypt, crypt, [LIBCRYPT="-lcrypt"]) if test "$enable_nfsv4" = yes; then AC_CHECK_LIB(event, event_dispatch, [libevent=1], AC_MSG_ERROR([libevent needed for nfsv4 support])) |