aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-08-13 09:58:09 +0000
committerJörg Mayer <jmayer@loplof.de>2013-08-13 09:58:09 +0000
commitbae2eee028334f658363709fb65b79eff1a8ecb5 (patch)
treec87b9982fab265b9e283b027a1e296f72ce78aea /ConfigureChecks.cmake
parent9ef54f5ea25eb56ef923cb4eefadfdf3a301455c (diff)
Implement in cmake:
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=51322 > User: guy > Date: 2013/08/12 01:01 PM > > Log: > Just check whether dladdr() is available; we check in the code whether > it succeeds, so there's no point in checking whether it succeeds in a > sample program. svn path=/trunk/; revision=51334
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index f36ada153b..a8d319bd75 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -65,7 +65,14 @@ check_include_file("winsock2.h" HAVE_WINSOCK2_H)
#Functions
include(CheckFunctionExists)
+include(CMakePushCheckState)
check_function_exists("chown" HAVE_CHOWN)
+
+cmake_push_check_state()
+set(CMAKE_REQUIRED_LIBRARIES ¼{CMAKE_DL_LIBS})
+check_function_exists("dladdr" HAVE_DLADDR)
+cmake_pop_check_state()
+
check_function_exists("gethostbyname2" HAVE_GETHOSTBYNAME2)
check_function_exists("getopt" HAVE_GETOPT)
check_function_exists("getprotobynumber" HAVE_GETPROTOBYNUMBER)