meson: Use and prefer tirpc for Secure RPC authentication
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
f72587ecc7
commit
514d2c243e
@ -54,7 +54,11 @@ if get_option('xdmcp')
|
|||||||
srcs_os += 'xdmcp.c'
|
srcs_os += 'xdmcp.c'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
rpc_dep = []
|
||||||
if get_option('secure-rpc')
|
if get_option('secure-rpc')
|
||||||
|
# prefer libtirpc (if available), otherwise assume RPC functions are
|
||||||
|
# provided by libc.
|
||||||
|
rpc_dep = dependency('libtirpc', required: false)
|
||||||
srcs_os += 'rpcauth.c'
|
srcs_os += 'rpcauth.c'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -73,6 +77,7 @@ libxserver_os = static_library('libxserver_os',
|
|||||||
common_dep,
|
common_dep,
|
||||||
dl_dep,
|
dl_dep,
|
||||||
sha1_dep,
|
sha1_dep,
|
||||||
|
rpc_dep,
|
||||||
dependency('xau')
|
dependency('xau')
|
||||||
],
|
],
|
||||||
link_with: libxlibc,
|
link_with: libxlibc,
|
||||||
|
Loading…
Reference in New Issue
Block a user