]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Lots of parts of nfs-utils already depend on getaddrinfo(3).
authorChuck Lever <chuck.lever@oracle.com>
Tue, 15 Jul 2008 16:15:29 +0000 (12:15 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 15 Jul 2008 16:15:29 +0000 (12:15 -0400)
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>
configure.ac

index 6ecbf55c9adf314c5bd8e4e93c73384108f77b3b..d508c2806bec0cb1ccffb45c9cb7e578c8c0cf0c 100644 (file)
@@ -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]))