replace: Only warn if rpc/rpc.h haven't been found
authorAndreas Schneider <asn@samba.org>
Mon, 26 Feb 2018 13:07:28 +0000 (14:07 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 27 Feb 2018 02:23:37 +0000 (03:23 +0100)
This is also used by talloc, tevent, etc. Those libs don't need or use
rpc.h

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Feb 27 03:23:37 CET 2018 on sn-devel-144

lib/replace/wscript

index 2c638b772124f720fa6a6ecce053296a8efdc56a..a2e2d1184777c9e89db889a81f05dce9e31d2630 100644 (file)
@@ -82,8 +82,7 @@ def configure(conf):
             conf.CHECK_HEADERS('rpc/rpc.h rpc/nettype.h', lib='tirpc', together=True)
             conf.SET_TARGET_TYPE('tirpc', 'SYSLIB')
     if not conf.CONFIG_SET('HAVE_RPC_RPC_H'):
-            Logs.error('ERROR: No rpc/rpc.h header found, tirpc or libntirpc missing?')
-            sys.exit(1)
+            Logs.warn('No rpc/rpc.h header found, tirpc or libntirpc missing?')
 
     conf.SET_TARGET_TYPE('nsl', 'EMPTY')
     conf.CHECK_HEADERS('rpc/rpc.h rpcsvc/yp_prot.h', lib='tirpc')