From 56a0802d620fae3d857fa7bb7067314614065012 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 11 Jan 2020 21:29:58 -0500 Subject: [PATCH] configure: fix detection of rpcsvc/mount.h 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 --- 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