|
From: Petr V. <pv...@su...> - 2020-01-08 10:35:35
|
Signed-off-by: Petr Vorel <pv...@su...> --- m4/ltp-tirpc.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/m4/ltp-tirpc.m4 b/m4/ltp-tirpc.m4 index 3f23b1a17..dd563e650 100644 --- a/m4/ltp-tirpc.m4 +++ b/m4/ltp-tirpc.m4 @@ -6,10 +6,13 @@ AC_DEFUN([LTP_CHECK_TIRPC], [ dnl libtirpc library and headers PKG_CHECK_MODULES([LIBTIRPC], [libtirpc], [have_libtirpc=yes], [have_libtirpc=no]) + dnl libntirpc library and headers + PKG_CHECK_MODULES([LIBNTIRPC], [libntirpc], [have_libntirpc=yes], [have_libntirpc=no]) + dnl TI-RPC headers (in glibc, since 2.26 installed only when configured with --enable-obsolete-rpc) AC_CHECK_HEADERS([rpc/rpc.h], [have_rpc_headers=yes]) - if test "x$have_libtirpc" = "xyes" -o "x$have_rpc_headers" = "xyes"; then - AC_DEFINE([HAVE_TIRPC], [1], [Define to 1 if you have libtirpc library and headers or glibc with TI-RPC support]) + if test "x$have_libtirpc" = "xyes" -o "x$have_libntirpc" = "xyes" -o "x$have_rpc_headers" = "xyes"; then + AC_DEFINE([HAVE_TIRPC], [1], [Define to 1 if you have libtirpc or libntirpc library and headers or glibc with TI-RPC support]) fi ]) -- 2.24.1 |