diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-22 02:07:14 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-22 02:07:14 +0200 |
commit | 3b378a6535bc8d9942875ba094301274819905e4 (patch) | |
tree | f6d9cf51c64f56c1b12dd7fb99ca7ba38b79e53c /configure.ac | |
parent | cd10e825fe4b5458c0deaa300449e0cd872570ef (diff) | |
download | hurd-3b378a6535bc8d9942875ba094301274819905e4.tar.gz hurd-3b378a6535bc8d9942875ba094301274819905e4.tar.bz2 hurd-3b378a6535bc8d9942875ba094301274819905e4.zip |
nfs/nfsd: Use libtirpc
Sun RPC is being phased out from glibc.
* configure.ac: Detect libtirpc.pc, subst libtirpc_CFLAGS and libtirpc_LIBS.
* config.make.in: Subst libtirpc_CFLAGS and libtirpc_LIBS.
* nfs/Makefile, nfsd/Makefile: Include libtirpc_CFLAGS and libtirpc_LIBS
* nfs/mount.c: Include <rpc/xdr.h>
* nfsd/main.c: Likewise.
* nfsd/ops.c: Likewise.
* nfsd/cache.c: Undef TRUE/FALSE after including rpc/ headers.
* nfsd/loop.c: Likewise.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 182548f2..63ba7c1d 100644 --- a/configure.ac +++ b/configure.ac @@ -317,9 +317,10 @@ AC_DEFINE_UNQUOTED([X11_PREFIX], "$X11_PREFIX") AC_SUBST([X11_KEYSYMDEF_H]) # 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]) +PKG_CHECK_MODULES([libtirpc], [libtirpc], [HAVE_SUN_RPC=yes]) AC_SUBST([HAVE_SUN_RPC]) +AC_SUBST([libtirpc_CFLAGS]) +AC_SUBST([libtirpc_LIBS]) if test -f ./$ac_unique_file; then # Configuring in source directory; don't create any Makefiles. |