diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-31 01:26:24 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-31 01:26:26 +0100 |
commit | 4f523e2b5004a0ae6e01d83b64b9f093a371848a (patch) | |
tree | bdb86c0e0e005340268918a3dab5439b2ef2986d /configure.ac | |
parent | bf721cfb73ffcf887d4e33a9338789bd56281f79 (diff) | |
download | hurd-4f523e2b5004a0ae6e01d83b64b9f093a371848a.tar.gz hurd-4f523e2b5004a0ae6e01d83b64b9f093a371848a.tar.bz2 hurd-4f523e2b5004a0ae6e01d83b64b9f093a371848a.zip |
Add --without-libtirpc
To facilitate cross-build without tinkering with pkg-config.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 849b5fad..e913b3f3 100644 --- a/configure.ac +++ b/configure.ac @@ -346,7 +346,14 @@ AC_DEFINE_UNQUOTED([X11_PREFIX], "$X11_PREFIX") AC_SUBST([X11_KEYSYMDEF_H]) # Check for Sun RPC headers and library. -PKG_CHECK_MODULES([libtirpc], [libtirpc], [HAVE_SUN_RPC=yes], [HAVE_SUN_RPC=no]) +AC_ARG_WITH([libtirpc], + [AS_HELP_STRING([--without-libtirpc], [disable libtirpc use in nfs/nfsd])], + [], + [with_libtirpc=yes]) + +AS_IF([test "x$with_libtirpc" != xno], [ + PKG_CHECK_MODULES([libtirpc], [libtirpc], [HAVE_SUN_RPC=yes], [HAVE_SUN_RPC=no]) +]) AC_SUBST([HAVE_SUN_RPC]) AC_SUBST([libtirpc_CFLAGS]) AC_SUBST([libtirpc_LIBS]) |