From 82dd739ceb246c8d8d10faf03b1a2267d8352d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 26 Jun 2015 13:05:45 +0200 Subject: Fix missing configure checks for CMake build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- krfb/ConfigureChecks.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'krfb') 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 +) + -- cgit v1.2.1