|
From: Mike G. <fl...@ge...> - 2020-01-14 20:03:09
|
If libtirpc is providing rpc/rpc.h, including rpcsvc/mount.h may fail if -I/path/to/tirpc is not passed to the compiler. Bug: https://bugs.gentoo.org/665222 Signed-off-by: Mike Gilbert <fl...@ge...> --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 2dd9471..7bfe4f1 100644 --- a/configure.ac +++ b/configure.ac @@ -63,7 +63,10 @@ AS_IF([test x$enable_libwrap = xyes], [ AC_SEARCH_LIBS([pthread_create], [pthread]) +SAVE_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $TIRPC_CFLAGS" AC_CHECK_HEADERS([nss.h rpcsvc/mount.h]) +CPPFLAGS="$SAVE_CPPFLAGS" # make sbindir available for substitution in config file # 2 "evals" needed to expand variable names -- 2.24.1 |