summaryrefslogtreecommitdiffstats
path: root/krfb/ConfigureChecks.cmake
blob: 4a760e97f8fd1f15ebcd107ebae798cd07575c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#################################################
#
#  (C) 2015 Timothy Pearson
#  kb9vqf (AT) pearsoncomputing (DOT) net
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

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
)