From: Jeff Layton Date: Wed, 15 Apr 2009 14:29:04 +0000 (-0400) Subject: nfs-utils: make getnameinfo() required for --enable-gss X-Git-Tag: nfs-utils-1-1-6-rc6~4 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4b27decace00754006d854a4bbbaa7dd305cba1c;p=nfs-utils.git nfs-utils: make getnameinfo() required for --enable-gss 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. Reviewed-by: Chuck Lever Signed-off-by: Jeff Layton Signed-off-by: Steve Dickson --- diff --git a/configure.ac b/configure.ac index f942238..251c7e4 100644 --- a/configure.ac +++ b/configure.ac @@ -236,6 +236,9 @@ AC_SUBST(LIBBSD) AC_SUBST(LIBBLKID) if test "$enable_gss" = yes; then + dnl 'gss' requires getnameinfo - at least for gssd_proc.c + AC_CHECK_FUNC([getnameinfo], , [AC_MSG_ERROR([GSSAPI support requires 'getnameinfo' function])]) + dnl 'gss' also depends on nfsidmap.h - at least for svcgssd_proc.c AC_LIBNFSIDMAP