Prefer TIRPC detection over search for rpc/rpc.h header.

Signed-off-by: François Andriot <francois.andriot@free.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit db1e25b1fe)
pull/182/head
François Andriot 4 years ago committed by Slávek Banko
parent bd659fa461
commit 1065f7a4d5
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -26,11 +26,11 @@ if( WITH_SASL )
endif( )
# rpc/rpc.h, originally was shipped with glibc ...
check_include_file( rpc/rpc.h HAVE_RPC_H )
# ... but later might be not present (deprecated from 2.26)
if( NOT HAVE_RPC_H )
pkg_search_module( TIRPC libtirpc )
if( NOT TIRPC_FOUND )
pkg_search_module( TIRPC libtirpc )
if( NOT TIRPC_FOUND )
check_include_file( rpc/rpc.h HAVE_RPC_H )
if( NOT HAVE_RPC_H )
tde_message_fatal( "rpc/rpc.h is required, please check your glibc or libtirpc package" )
endif( )
endif( )

Loading…
Cancel
Save