summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/Rpcgen/live.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Rpcgen/live.py b/test/Rpcgen/live.py
index 6f238ff..1e31694 100644
--- a/test/Rpcgen/live.py
+++ b/test/Rpcgen/live.py
@@ -49,6 +49,14 @@ if env['PLATFORM'] == 'darwin':
# #include <stdlib.h> to get the declarations right. Suppress the
# warnings so the test passes.
env.Append(CCFLAGS=['-w'])
+
+# on some Linux systems, RPC support has moved to libtirpc. Check for that.
+conf = Configure(env)
+env.Append(CPPPATH=['/usr/include/tirpc'])
+if conf.CheckLibWithHeader('tirpc', 'rpc/rpc.h', 'c'):
+ env.Append(LIBS=['tirpc'])
+env = conf.Finish()
+
env.Program('rpcclnt', ['rpcclnt.c', 'do_rpcgen/rpcif_clnt.c'])
env.RPCGenHeader('do_rpcgen/rpcif')
env.RPCGenClient('do_rpcgen/rpcif')