From debb2b2b9e9a495b0f9f31753ac5e75e4b2d5364 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 23 Oct 2012 17:14:43 +1100 Subject: lib/replace: Fix detection of rpcsrv/yp_prot.h on FreeBSD --- lib/replace/wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/replace') diff --git a/lib/replace/wscript b/lib/replace/wscript index 732c664b6e..a31afa6ce3 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -89,7 +89,10 @@ struct foo bar = { .y = 'X', .x = 1 }; conf.CHECK_HEADERS('rpcsvc/nis.h rpcsvc/ypclnt.h sys/prctl.h sys/sysctl.h') conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') - conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h rpcsvc/yp_prot.h') + conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') + + conf.CHECK_CODE('', headers='rpc/rpc.h rpcsvc/yp_prot.h', define='HAVE_RPCSVC_YP_PROT_H') + conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h valgrind/memcheck.h') conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') -- cgit