summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2019-12-04 20:46:15 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-12-04 20:46:31 +0100
commit1065f7a4d56224e30956d4d1061b52b1e6ea91fd (patch)
tree46d2b564eed0ae6975eba3a0d042d75d9970aec1
parentbd659fa4616ecd6af3f5666a2a164750c447313c (diff)
downloadtdebase-1065f7a4d56224e30956d4d1061b52b1e6ea91fd.tar.gz
tdebase-1065f7a4d56224e30956d4d1061b52b1e6ea91fd.zip
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 db1e25b1feef6df33c9c1b2d3811d02890c10d77)
-rw-r--r--tdeioslave/ConfigureChecks.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeioslave/ConfigureChecks.cmake b/tdeioslave/ConfigureChecks.cmake
index b1da9eb93..e7d339e2f 100644
--- a/tdeioslave/ConfigureChecks.cmake
+++ b/tdeioslave/ConfigureChecks.cmake
@@ -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( )