annotate include/freeDiameter/CMakeLists.txt @ 1240:0420ccc4671a

Add a counter for the sent requests for which we did not wait for an answer. It might be relevant this value contributes to the load estimate of the remote peer, but it is not very reliable
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 10 Oct 2013 16:30:55 +0200
parents 05f74dc19c49
children b255ba44f59c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
bafb831ba688 Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 0
diff changeset
1 #CMake configuration for freeDiameter include directory
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
2
658
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
3 Project("freeDiameter includes directory" C)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
4
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
5 ########################
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
6 # Configurable parameters
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
7
871
254d81d21d0b Fix some typos.
Thomas Klausner <tk@giga.or.at>
parents: 853
diff changeset
8 # Disable SCTP support completely ?
23
db6c40b8b307 Added some code in cnxctx.c mainly
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 17
diff changeset
9 OPTION(DISABLE_SCTP "Disable SCTP support?" OFF)
db6c40b8b307 Added some code in cnxctx.c mainly
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 17
diff changeset
10 IF (NOT DISABLE_SCTP)
db6c40b8b307 Added some code in cnxctx.c mainly
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 17
diff changeset
11 OPTION(DEBUG_SCTP "Verbose SCTP (for debug)?" OFF)
24
bd83ce9328ed Cleanups and completed sctp code (not finished)
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 23
diff changeset
12 OPTION(SCTP_USE_MAPPED_ADDRESSES "Use v6-mapped v4 addresses in SCTP (workaround some SCTP limitations)?" OFF)
23
db6c40b8b307 Added some code in cnxctx.c mainly
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 17
diff changeset
13 ENDIF (NOT DISABLE_SCTP)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
14
17
ab3c58d88be3 Added proper gcrypt initializer
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 13
diff changeset
15 # Find TODO items in the code easily ?
13
ef9ef3bf4752 Progress on peer state machine
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 8
diff changeset
16 OPTION(ERRORS_ON_TODO "(development) Generate compilation errors on TODO items ?" OFF)
ef9ef3bf4752 Progress on peer state machine
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 8
diff changeset
17
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
18 # Create the absolute path for searching extensions
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
19 SET(DEFAULT_EXTENSIONS_PATH ${CMAKE_INSTALL_PREFIX}/${INSTALL_EXTENSIONS_SUFFIX})
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
20
707
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
21 # IDNA considerations
871
254d81d21d0b Fix some typos.
Thomas Klausner <tk@giga.or.at>
parents: 853
diff changeset
22 OPTION(DIAMID_IDNA_IGNORE "Ignore completely invalid characters in Diameter Identities (process blindly)?" OFF)
707
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
23 IF (NOT DIAMID_IDNA_IGNORE)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
24 OPTION (DIAMID_IDNA_REJECT "Reject internationalized Diameter Identities, do not attempt to convert it (stringprep) ?" OFF)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
25 ENDIF (NOT DIAMID_IDNA_IGNORE)
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
26
933
04f590da5821 Add cmake option DISABLE_PEER_EXPIRY to disable dynamic peer expiration mechanism
Sebastien Decugis <sdecugis@freediameter.net>
parents: 871
diff changeset
27 # Disable expiration of connections with dynamically connected peers as per RFC 3539 ? (default is enabled)
04f590da5821 Add cmake option DISABLE_PEER_EXPIRY to disable dynamic peer expiration mechanism
Sebastien Decugis <sdecugis@freediameter.net>
parents: 871
diff changeset
28 # Note: if someone needs, we could also make the delay configurable here...
04f590da5821 Add cmake option DISABLE_PEER_EXPIRY to disable dynamic peer expiration mechanism
Sebastien Decugis <sdecugis@freediameter.net>
parents: 871
diff changeset
29 OPTION(DISABLE_PEER_EXPIRY "Disable RFC3539 Peers Connections Expiration after inactivity?" OFF)
04f590da5821 Add cmake option DISABLE_PEER_EXPIRY to disable dynamic peer expiration mechanism
Sebastien Decugis <sdecugis@freediameter.net>
parents: 871
diff changeset
30
935
6072619402a3 New CMake option WORKAROUND_ACCEPT_INVALID_VSAI for those invalids Vendor-Specific-Application-Id out there
Sebastien Decugis <sdecugis@freediameter.net>
parents: 933
diff changeset
31 # The following workaround increases compatibility with some implementations without breaking anything in freeDiameter,
6072619402a3 New CMake option WORKAROUND_ACCEPT_INVALID_VSAI for those invalids Vendor-Specific-Application-Id out there
Sebastien Decugis <sdecugis@freediameter.net>
parents: 933
diff changeset
32 # so it can be enabled without risk. We keep it disabled by default anyway for those people who use freeDiameter to check the
6072619402a3 New CMake option WORKAROUND_ACCEPT_INVALID_VSAI for those invalids Vendor-Specific-Application-Id out there
Sebastien Decugis <sdecugis@freediameter.net>
parents: 933
diff changeset
33 # compliancy of their implementation with the Diameter RFC...
6072619402a3 New CMake option WORKAROUND_ACCEPT_INVALID_VSAI for those invalids Vendor-Specific-Application-Id out there
Sebastien Decugis <sdecugis@freediameter.net>
parents: 933
diff changeset
34 OPTION(WORKAROUND_ACCEPT_INVALID_VSAI "Do not reject a CER/CEA with a Vendor-Specific-Application-Id AVP containing both Auth- and Acct- application AVPs?" OFF)
933
04f590da5821 Add cmake option DISABLE_PEER_EXPIRY to disable dynamic peer expiration mechanism
Sebastien Decugis <sdecugis@freediameter.net>
parents: 871
diff changeset
35
1136
140450615773 Revert changeset 1122 (ADDRESS_AVP_INCLUDE_PORT) as this will create too much interop issues. The Host-IP-Address AVP is not normally used to discover peer address, but only for validation of the addresses where a packet is received from -- which is quite useless with a connected transport connection, but anyway...
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1133
diff changeset
36 MARK_AS_ADVANCED(DISABLE_SCTP DEBUG_SCTP SCTP_USE_MAPPED_ADDRESSES ERRORS_ON_TODO DIAMID_IDNA_IGNORE DIAMID_IDNA_REJECT DISABLE_PEER_EXPIRY WORKAROUND_ACCEPT_INVALID_VSAI)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
37
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
38 ########################
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
39 ### System checks part
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
40
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
41 INCLUDE (CheckLibraryExists)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
42 INCLUDE (CheckFunctionExists)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
43 INCLUDE (CheckIncludeFiles)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
44 INCLUDE (CheckSymbolExists)
51
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
45 INCLUDE (CheckCSourceCompiles)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
46 INCLUDE (TestBigEndian)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
47
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
48
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
49 ### System checks -- mandatory support
316
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
50
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
51 # We need the getopt_long function
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
52 CHECK_FUNCTION_EXISTS (getopt_long HAVE_LONG_OPTIONS)
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
53 IF (NOT HAVE_LONG_OPTIONS)
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
54 MESSAGE(SEND_ERROR "The getopt_long function is not found, please add needed library in build system")
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
55 ENDIF (NOT HAVE_LONG_OPTIONS)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
56
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
57 # getifaddrs ?
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
58 CHECK_FUNCTION_EXISTS (getifaddrs HAVE_GETIFADDRS)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
59 IF (NOT HAVE_GETIFADDRS)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
60 MESSAGE(SEND_ERROR "The getifaddrs function is currently required by freeDiameter.")
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
61 ENDIF (NOT HAVE_GETIFADDRS)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
62
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
63
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
64 ### System checks -- for freeDiameter-host.h
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
65
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
66 # Check byte ordering
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
67 TEST_BIG_ENDIAN(HOST_BIG_ENDIAN)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
68
316
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
69 # Check if ntohll is provided on the system
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
70 CHECK_SYMBOL_EXISTS(ntohll "" HAVE_NTOHLL)
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
71
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
72 # malloc.h ?
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
73 CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H)
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
74
849
d7f940afd933 New portability function: strndup
Sebastien Decugis <sdecugis@freediameter.net>
parents: 836
diff changeset
75 # strndup ? Missing on OS X
d7f940afd933 New portability function: strndup
Sebastien Decugis <sdecugis@freediameter.net>
parents: 836
diff changeset
76 CHECK_FUNCTION_EXISTS (strndup HAVE_STRNDUP)
d7f940afd933 New portability function: strndup
Sebastien Decugis <sdecugis@freediameter.net>
parents: 836
diff changeset
77
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
78
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
79 ### System checks -- for includes / link
316
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
80
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
81 # pthreads
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
82 INCLUDE(FindThreads)
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
83 SET(CMAKE_THREAD_LIBS_INIT ${CMAKE_THREAD_LIBS_INIT} PARENT_SCOPE)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
84
316
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
85 # clock_gettime
836
da97a5aa7976 Add replacement for clock_gettime (for Mac OS) -- ticket #38
Sebastien Decugis <sdecugis@freediameter.net>
parents: 815
diff changeset
86 SET(HAVE_CLOCK_GETTIME "")
da97a5aa7976 Add replacement for clock_gettime (for Mac OS) -- ticket #38
Sebastien Decugis <sdecugis@freediameter.net>
parents: 815
diff changeset
87 CHECK_FUNCTION_EXISTS (clock_gettime HAVE_NATIVE_CLOCK_GETTIME)
da97a5aa7976 Add replacement for clock_gettime (for Mac OS) -- ticket #38
Sebastien Decugis <sdecugis@freediameter.net>
parents: 815
diff changeset
88 IF (HAVE_NATIVE_CLOCK_GETTIME)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
89 SET(CLOCK_GETTIME_LIBS "")
836
da97a5aa7976 Add replacement for clock_gettime (for Mac OS) -- ticket #38
Sebastien Decugis <sdecugis@freediameter.net>
parents: 815
diff changeset
90 SET(HAVE_CLOCK_GETTIME 1)
da97a5aa7976 Add replacement for clock_gettime (for Mac OS) -- ticket #38
Sebastien Decugis <sdecugis@freediameter.net>
parents: 815
diff changeset
91 ELSE (HAVE_NATIVE_CLOCK_GETTIME)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
92 CHECK_LIBRARY_EXISTS (rt clock_gettime "" HAVE_LIBRT)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
93 IF (HAVE_LIBRT)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
94 SET(CLOCK_GETTIME_LIBS "-lrt")
836
da97a5aa7976 Add replacement for clock_gettime (for Mac OS) -- ticket #38
Sebastien Decugis <sdecugis@freediameter.net>
parents: 815
diff changeset
95 SET(HAVE_CLOCK_GETTIME 1)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
96 ELSE (HAVE_LIBRT)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
97 CHECK_LIBRARY_EXISTS (posix4 clock_gettime "" HAVE_LIBPOSIX4)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
98 IF (HAVE_LIBPOSIX4)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
99 SET(CLOCK_GETTIME_LIBS "-lposix4")
836
da97a5aa7976 Add replacement for clock_gettime (for Mac OS) -- ticket #38
Sebastien Decugis <sdecugis@freediameter.net>
parents: 815
diff changeset
100 SET(HAVE_CLOCK_GETTIME 1)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
101 ENDIF (HAVE_LIBPOSIX4)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
102 ENDIF (HAVE_LIBRT)
836
da97a5aa7976 Add replacement for clock_gettime (for Mac OS) -- ticket #38
Sebastien Decugis <sdecugis@freediameter.net>
parents: 815
diff changeset
103 ENDIF (HAVE_NATIVE_CLOCK_GETTIME)
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
104 SET(CLOCK_GETTIME_LIBS ${CLOCK_GETTIME_LIBS} PARENT_SCOPE)
316
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
105
aa8f41bca657 Fixed libraries dependencies
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 313
diff changeset
106 # dlopen and dlclose: CMAKE_DL_LIBS
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
107
51
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
108 # We need the sctp_connectx function among others
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
109 # We need the IPPROTO_SCTP symbol from sys/socket.h, netinet/in.h or netinet/sctp.h
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
110 IF(NOT DISABLE_SCTP)
51
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
111 CHECK_FUNCTION_EXISTS(sctp_connectx HAVE_NATIVE_SCTP)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
112 IF(NOT HAVE_NATIVE_SCTP)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
113 FIND_PACKAGE(SCTP REQUIRED)
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
114 ENDIF(NOT HAVE_NATIVE_SCTP)
51
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
115 # Now check the number of args of this function, since it changed between Ubuntu 9.04 and 9.10
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
116 SET(CHECK_SCTP_CONNECTX_4_ARGS_SOURCE_CODE "
168
6db078b955e3 Completed rt_default extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 51
diff changeset
117 #include <unistd.h>
6db078b955e3 Completed rt_default extension
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 51
diff changeset
118 #include <netinet/sctp.h>
51
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
119 int main() {
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
120 return sctp_connectx(0, NULL, 0, NULL);
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
121 }
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
122 ")
493
d68f27e7e814 Fixed a few CMake variable names
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 492
diff changeset
123 SET(CMAKE_REQUIRED_INCLUDES ${SCTP_INCLUDE_DIR})
51
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
124 SET(CMAKE_REQUIRED_LIBRARIES ${SCTP_LIBRARIES})
08d8cbeff30b Fix for number of args to sctp_connectx
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 24
diff changeset
125 CHECK_C_SOURCE_COMPILES("${CHECK_SCTP_CONNECTX_4_ARGS_SOURCE_CODE}" SCTP_CONNECTX_4_ARGS)
305
61f78fdbacc2 Cleanup vars names
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 304
diff changeset
126 ELSE (NOT DISABLE_SCTP)
61f78fdbacc2 Cleanup vars names
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 304
diff changeset
127 MESSAGE(STATUS "Disabled SCTP support.")
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
128 ENDIF(NOT DISABLE_SCTP)
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
129 SET(SCTP_INCLUDE_DIR ${SCTP_INCLUDE_DIR} PARENT_SCOPE)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
130 SET(SCTP_LIBRARIES ${SCTP_LIBRARIES} PARENT_SCOPE)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
131
707
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
132 # IDNA process: we use libidn from GNU (unless the function & header files are included in libc)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
133 IF(NOT DIAMID_IDNA_IGNORE AND NOT DIAMID_IDNA_REJECT)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
134 FIND_PACKAGE(IDNA)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
135 SET(CHECK_IDNA_SOURCE_CODE "
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
136 #include <idna.h>
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
137 int main() {
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
138 return idna_to_ascii_8z(NULL, NULL, 0);
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
139 }
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
140 ")
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
141 SET(CMAKE_REQUIRED_INCLUDES ${IDNA_INCLUDE_DIR})
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
142 SET(CMAKE_REQUIRED_LIBRARIES ${IDNA_LIBRARIES})
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
143 CHECK_C_SOURCE_COMPILES("${CHECK_IDNA_SOURCE_CODE}" HAS_IDNA_SUPPORT)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
144 IF(NOT HAS_IDNA_SUPPORT)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
145 MESSAGE(SEND_ERROR "Unable to find idna.h header or idna_to_ascii_8z function, please install libidn-dev or equivalent, or set DIAMID_IDNA_IGNORE or DIAMID_IDNA_REJECT")
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
146 ENDIF(NOT HAS_IDNA_SUPPORT)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
147 ELSE (NOT DIAMID_IDNA_IGNORE AND NOT DIAMID_IDNA_REJECT)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
148 MESSAGE(STATUS "Non-default Internationalized Domain Names (IDN) behavior selected (no stringprep).")
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
149 ENDIF(NOT DIAMID_IDNA_IGNORE AND NOT DIAMID_IDNA_REJECT)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
150 SET(IDNA_INCLUDE_DIR ${IDNA_INCLUDE_DIR} PARENT_SCOPE)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
151 SET(IDNA_LIBRARIES ${IDNA_LIBRARIES} PARENT_SCOPE)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
152
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
153
658
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
154 # Require GNU TLS for building the library
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
155 FIND_PACKAGE(GnuTLS REQUIRED)
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
156 SET(GNUTLS_INCLUDE_DIR ${GNUTLS_INCLUDE_DIR} PARENT_SCOPE)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
157 SET(GNUTLS_LIBRARIES ${GNUTLS_LIBRARIES} PARENT_SCOPE)
658
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
158
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
159 find_path(GCRYPT_INCLUDE_DIR NAMES gcrypt.h)
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
160 If ( NOT GCRYPT_INCLUDE_DIR )
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
161 MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent")
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
162 Endif ( NOT GCRYPT_INCLUDE_DIR )
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
163 MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR)
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
164 SET(GCRYPT_INCLUDE_DIR ${GCRYPT_INCLUDE_DIR} PARENT_SCOPE)
658
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
165
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
166 # Also we need libgcrypt to... display its version :(
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
167 find_library(GCRYPT_LIBRARY
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
168 NAMES gcrypt
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
169 )
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
170 If ( NOT GCRYPT_LIBRARY )
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
171 MESSAGE(SEND_ERROR "Unable to find libgcrypt, please install libgcrypt or equivalent")
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
172 Endif ( NOT GCRYPT_LIBRARY )
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
173 SET(GCRYPT_LIBRARY ${GCRYPT_LIBRARY} PARENT_SCOPE)
658
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
174
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
175
815
958d3efb45b5 Add test for AI_ADDRCONFIG for platforms where it does not exist
Sebastien Decugis <sdecugis@freediameter.net>
parents: 707
diff changeset
176 # Check if AI_ADDRCONFIG is available on the system
958d3efb45b5 Add test for AI_ADDRCONFIG for platforms where it does not exist
Sebastien Decugis <sdecugis@freediameter.net>
parents: 707
diff changeset
177 CHECK_SYMBOL_EXISTS(AI_ADDRCONFIG "netdb.h" HAVE_AI_ADDRCONFIG)
958d3efb45b5 Add test for AI_ADDRCONFIG for platforms where it does not exist
Sebastien Decugis <sdecugis@freediameter.net>
parents: 707
diff changeset
178
958d3efb45b5 Add test for AI_ADDRCONFIG for platforms where it does not exist
Sebastien Decugis <sdecugis@freediameter.net>
parents: 707
diff changeset
179
853
16428c4ecb22 Remove testfifo if pthread_barriers are not available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 849
diff changeset
180 # Check if barriers are available (for test_fifo)
16428c4ecb22 Remove testfifo if pthread_barriers are not available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 849
diff changeset
181 SET(CMAKE_REQUIRED_INCLUDES "pthread.h")
16428c4ecb22 Remove testfifo if pthread_barriers are not available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 849
diff changeset
182 SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
16428c4ecb22 Remove testfifo if pthread_barriers are not available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 849
diff changeset
183 CHECK_FUNCTION_EXISTS (pthread_barrier_wait HAVE_PTHREAD_BAR)
16428c4ecb22 Remove testfifo if pthread_barriers are not available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 849
diff changeset
184 SET(HAVE_PTHREAD_BAR ${HAVE_PTHREAD_BAR} PARENT_SCOPE)
16428c4ecb22 Remove testfifo if pthread_barriers are not available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 849
diff changeset
185
815
958d3efb45b5 Add test for AI_ADDRCONFIG for platforms where it does not exist
Sebastien Decugis <sdecugis@freediameter.net>
parents: 707
diff changeset
186
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
187 ##########################
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
188
1159
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
189 # Additional hg version when relevant, stored in version.h
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
190 if (EXISTS "${CMAKE_SOURCE_DIR}/.hg")
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
191 # Search for hg binary to use
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
192 FIND_PROGRAM(HGCOMMAND hg)
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
193 if (HGCOMMAND)
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
194 # Ok, add the custom target so that hg is executed at every build
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
195 ADD_CUSTOM_TARGET(version_information
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
196 COMMAND ${CMAKE_COMMAND} -D HGCOMMAND="${HGCOMMAND}" -D SRC="${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" -D DST="${CMAKE_CURRENT_BINARY_DIR}/version.h" -P "${CMAKE_SOURCE_DIR}/cmake/Modules/GetVersionWithHg.cmake"
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
197 DEPENDS "${CMAKE_SOURCE_DIR}/.hg/dirstate"
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
198 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
199 COMMENT "Retrieving version of the hg repository"
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
200 )
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
201 else (HGCOMMAND)
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
202 # Display at least "unknown" rev in this case
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
203 SET(FD_PROJECT_VERSION_HG "unknown")
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
204 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
205 ADD_CUSTOM_TARGET(version_information DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/version.h)
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
206 endif(HGCOMMAND)
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
207 else (EXISTS "${CMAKE_SOURCE_DIR}/.hg")
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
208 # We use the pure version number without extension
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
209 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
210 ADD_CUSTOM_TARGET(version_information DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/version.h)
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
211 endif (EXISTS "${CMAKE_SOURCE_DIR}/.hg")
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
212
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
213
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
214 ##########################
05f74dc19c49 Include source rev number in version information when available
Sebastien Decugis <sdecugis@freediameter.net>
parents: 1136
diff changeset
215
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
216 # LFDPROTO_LIBS = libraries required by the libfdproto.
707
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
217 SET(LFDPROTO_LIBS ${CLOCK_GETTIME_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${IDNA_LIBRARIES} PARENT_SCOPE)
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
218 # And includes paths
e387d5c6b6f5 Added support for Internationalized Domain Names (IDNA) using GNU libidn
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 677
diff changeset
219 SET(LFDPROTO_INCLUDES ${IDNA_INCLUDE_DIR} PARENT_SCOPE)
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
220 # Dependencies: the libraries required by any code linking to libfdproto.
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
221 SET(LFDPROTO_LINK_INTERFACES ${CMAKE_THREAD_LIBS_INIT} PARENT_SCOPE)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
222
668
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
223 # LFDCORE_LIBS = libraries required by the libfdcore (in addition to libfdproto and its dependencies)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
224 SET(LFDCORE_LIBS ${CLOCK_GETTIME_LIBS} ${CMAKE_DL_LIBS} ${SCTP_LIBRARIES} ${GCRYPT_LIBRARY} ${GNUTLS_LIBRARIES} PARENT_SCOPE)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
225 # And includes paths
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
226 SET(LFDCORE_INCLUDES ${SCTP_INCLUDE_DIR} ${GNUTLS_INCLUDE_DIR} ${GCRYPT_INCLUDE_DIR} PARENT_SCOPE)
4ef3b7cdf734 Some more cleanups in linking
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 666
diff changeset
227 # And dependencies
677
fdce8d4575b7 Cleanup link commands for Fedora
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 668
diff changeset
228 SET(LFDCORE_LINK_INTERFACES "" PARENT_SCOPE)
fdce8d4575b7 Cleanup link commands for Fedora
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 668
diff changeset
229 # We don't force other libraries, the programs will link with what it needs
fdce8d4575b7 Cleanup link commands for Fedora
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 668
diff changeset
230 # (such as libgnutls if it uses GNUTLS_DEBUG() macro
fdce8d4575b7 Cleanup link commands for Fedora
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 668
diff changeset
231 # or libfdproto if it uses some of its interfaces directly)
fdce8d4575b7 Cleanup link commands for Fedora
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 668
diff changeset
232 # See freeDiameterd/CMakeLists.txt for an example.
305
61f78fdbacc2 Cleanup vars names
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 304
diff changeset
233
61f78fdbacc2 Cleanup vars names
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 304
diff changeset
234 ##########################
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
235
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
236 # Generate the host.h file
1
bafb831ba688 Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 0
diff changeset
237 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/freeDiameter-host.h.in ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h)
0
13530e1f02e3 Initial files imported
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff changeset
238
304
ad3c46016584 Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 236
diff changeset
239 ####
ad3c46016584 Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 236
diff changeset
240 ## INSTALL section ##
ad3c46016584 Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 236
diff changeset
241
ad3c46016584 Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 236
diff changeset
242 # The headers from this directory are required to develop new extensions for freeDiameter.
658
f198d16fa7f4 Initial commit for 1.1.0:
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 561
diff changeset
243 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h libfdproto.h libfdcore.h extension.h
313
6fd1e6f56af5 Completed initial debianization
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 305
diff changeset
244 DESTINATION ${INSTALL_HEADERS_SUFFIX}
304
ad3c46016584 Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 236
diff changeset
245 COMPONENT freeDiameter-dev)
ad3c46016584 Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents: 236
diff changeset
246
"Welcome to our mercurial repository"