From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Layton Subject: [PATCH 1/6] nfs-utils: make getnameinfo() required for --enable-gss Date: Wed, 11 Mar 2009 12:42:57 -0400 Message-ID: <1236789782-8867-2-git-send-email-jlayton@redhat.com> References: <1236789782-8867-1-git-send-email-jlayton@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: linux-nfs@vger.kernel.org, nfsv4@linux-nfs.org Return-path: In-Reply-To: <1236789782-8867-1-git-send-email-jlayton@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfsv4-bounces@linux-nfs.org Errors-To: nfsv4-bounces@linux-nfs.org List-ID: Systems that are so old that they don't have getnameinfo() in glibc are probably also running kernels that are so old that they don't support gssapi upcalls anyway. Make --enable-gss dependent on the presence of the getnameinfo() function. This allows us to reduce some conditional compilation. Signed-off-by: Jeff Layton --- configure.ac | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 1f3c149..e7a5924 100644 --- a/configure.ac +++ b/configure.ac @@ -207,6 +207,8 @@ if test "$enable_nfsv4" = yes; then dnl but we need to make sure we get the right version if test "$enable_gss" = yes; then AC_RPCSEC_VERSION + AC_CHECK_FUNC([getnameinfo], , + [AC_MSG_ERROR([Function 'getnameinfo' not found.])]) fi fi -- 1.6.0.6