From 610ea745d4c95c2f560aa98f6ac0a0aa45a68fff Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 5 Nov 2011 17:58:27 +0100 Subject: Disable NFS translator and daemon compilation when Sun RPC is lacking. * Makefile (prog-subdirs): Make `nfs' and `nfsd' conditional on $(HAVE_SUN_RPC) = yes. * config.make.in (HAVE_SUN_RPC): New variable. * configure.in: Check for and `clnt_create'. * README.CVS: Document dependency on a Sun RPC implementation. --- README.CVS | 7 +++++++ configure.in | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/README.CVS b/README.CVS index 781acdeb..92a2392d 100644 --- a/README.CVS +++ b/README.CVS @@ -17,6 +17,13 @@ GNU Mach at least 1.3 GNU C library CVS from 2004-03-09 or later GNU C compiler at least 3.3.2 +Optionally, a Sun RPC implementation is needed to build the NFS +translator and daemon: + +GNU C library at most 2.13 +TI-RPC (currently fails to build on GNU, see + .) + Obviously, you also need somewhat recent versions of binutils, make, bash and some other tools. No hard requirements are currently known for these, though. diff --git a/configure.in b/configure.in index 1cf4daab..635242d2 100644 --- a/configure.in +++ b/configure.in @@ -230,6 +230,11 @@ AC_MSG_RESULT($boot_store_types) # Check for ncursesw, which is needed for the console-curses client. hurd_LIB_NCURSESW +# Check for Sun RPC headers and library. +AC_CHECK_HEADER([rpc/types.h], [HAVE_SUN_RPC=yes], [HAVE_SUN_RPC=no]) +AC_SEARCH_LIBS([clnt_create], [], [:], [HAVE_SUN_RPC=no]) +AC_SUBST([HAVE_SUN_RPC]) + if test -f ./$ac_unique_file; then # Configuring in source directory; don't create any Makefiles. makefiles= -- cgit v1.2.3