On Apr 5, 2009, at 9:42 AM, Jeff Layton wrote:
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 <jlayton@xxxxxxxxxx>
---
configure.ac | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index e34b7e2..00aee35 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
This check is only done when enable_nfsv4 is set. Probably a better
place for this is in the enable_gss test that is always done, a few
paragraphs lower.
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html