2 dnl # Check for libtirpc - may be needed for xdr functionality
4 AC_DEFUN([ZFS_AC_CONFIG_USER_LIBTIRPC], [
6 [AS_HELP_STRING([--with-tirpc],
7 [use tirpc for xdr encoding @<:@default=check@:>@])],
13 AS_IF([test "x$with_tirpc" != "xyes"], [
14 AC_SEARCH_LIBS([xdrmem_create], [], [have_xdr=1], [
15 AS_IF([test "x$with_tirpc" = "xno"], [
16 AC_MSG_FAILURE([xdrmem_create() requires sunrpc support in libc if not using libtirpc])
21 AS_IF([test "x$have_xdr" = "x"], [
22 ZFS_AC_FIND_SYSTEM_LIBRARY(LIBTIRPC, [libtirpc], [rpc/xdr.h], [tirpc], [tirpc], [xdrmem_create], [], [
23 AS_IF([test "x$with_tirpc" = "xyes"], [
24 AC_MSG_FAILURE([--with-tirpc was given, but libtirpc is not available, try installing libtirpc-devel])
26 AC_MSG_FAILURE([neither libc sunrpc support nor libtirpc is available, try installing libtirpc-devel])