summaryrefslogtreecommitdiffstats
path: root/krfb/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-26 13:05:45 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-26 13:30:19 +0200
commit86e9e2420c147bf64ae64aafd2e75576dc40e7b6 (patch)
treee76bfc213ded08ebb1e8a9e92865e0a7f3cd995a /krfb/ConfigureChecks.cmake
parent3fc864f49b40c1ed45e330f454674f825639efbc (diff)
downloadtdenetwork-86e9e2420c147bf64ae64aafd2e75576dc40e7b6.tar.gz
tdenetwork-86e9e2420c147bf64ae64aafd2e75576dc40e7b6.zip
Fix missing configure checks for CMake build
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 82dd739ceb246c8d8d10faf03b1a2267d8352d16)
Diffstat (limited to 'krfb/ConfigureChecks.cmake')
-rw-r--r--krfb/ConfigureChecks.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/krfb/ConfigureChecks.cmake b/krfb/ConfigureChecks.cmake
index 9e24956f..0973a0e6 100644
--- a/krfb/ConfigureChecks.cmake
+++ b/krfb/ConfigureChecks.cmake
@@ -13,3 +13,14 @@ pkg_search_module( XTST xtst )
if( NOT XTST_FOUND )
tde_message_fatal( "xtst is required, but was not found on your system" )
endif( )
+
+check_function_exists( getnameinfo HAVE_GETNAMEINFO )
+check_function_exists( getifaddrs HAVE_GETIFADDRS )
+check_include_file( sys/sockio.h HAVE_SYS_SOCKIO_H )
+
+check_struct_has_member(
+ "struct sockaddr" sa_len
+ "sys/types.h;sys/socket.h;netinet/in.h"
+ HAVE_STRUCT_SOCKADDR_SA_LEN
+)
+