build: Only check rpc/xdr.h in tirpc if required
authorVolker Lendecke <vl@samba.org>
Wed, 31 Jul 2019 10:19:24 +0000 (12:19 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 6 Aug 2019 21:49:28 +0000 (21:49 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/wscript

index 6a4822dd711ec6b55e044f892e54e0b4f8d17436..d6333f03386fd1c95601dce5204672492b3e6230 100644 (file)
@@ -1693,7 +1693,8 @@ main() {
         conf.DEFINE('WITH_SPOTLIGHT', '1')
         conf.env.with_spotlight = True
 
-    conf.CHECK_HEADERS('rpc/xdr.h', lib='tirpc')
+    if not conf.CONFIG_SET('HAVE_RPC_XDR_H'):
+        conf.CHECK_HEADERS('rpc/xdr.h', lib='tirpc')
 
     if conf.CHECK_FUNCS_IN('nscd_flush_cache', 'nscd', headers='libnscd.h'):
         conf.DEFINE('HAVE_NSCD_FLUSH_CACHE', '1')