summaryrefslogtreecommitdiffstats
path: root/krfb
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:19:44 +0200
commit82dd739ceb246c8d8d10faf03b1a2267d8352d16 (patch)
treee2e117d3c247074fc4959bee80bb3c8a88ee218d /krfb
parent0df5874cec0754bed224839d37a7a0fa51849a55 (diff)
downloadtdenetwork-82dd739ceb246c8d8d10faf03b1a2267d8352d16.tar.gz
tdenetwork-82dd739ceb246c8d8d10faf03b1a2267d8352d16.zip
Fix missing configure checks for CMake build
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'krfb')
-rw-r--r--krfb/ConfigureChecks.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/krfb/ConfigureChecks.cmake b/krfb/ConfigureChecks.cmake
index 2de58a4d..4a760e97 100644
--- a/krfb/ConfigureChecks.cmake
+++ b/krfb/ConfigureChecks.cmake
@@ -16,3 +16,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
+)
+