diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-06-27 15:02:37 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-27 15:02:37 +0200 |
commit | 421c249f1ff8e75ce646b6d94c0e0a141b30f2a8 (patch) | |
tree | 2ae6be28ab11cfcb6087001e62842b7da5a6c984 /ConfigureChecks.cmake | |
parent | 5e3fd5744622dd3d7030427611f7ae588dc72dc6 (diff) | |
download | tdeutils-421c249f1ff8e75ce646b6d94c0e0a141b30f2a8.tar.gz tdeutils-421c249f1ff8e75ce646b6d94c0e0a141b30f2a8.zip |
Fix build on freebsd
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 765f608..509362a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -164,6 +164,17 @@ if ( BUILD_KSIM ) tde_message_fatal( "netsnmp is required, but was not found on your system" ) endif () endif( WITH_SNMP ) + + check_library_exists( devstat selectdevs "" HAVE_DEVSTAT_SELECTDEVS ) + if( HAVE_DEVSTAT_SELECTDEVS ) + set( DEVSTAT_LIBRARIES devstat ) + else( ) + check_library_exists( devstat devstat_selectdevs "" HAVE_DEVSTAT_DEVSTAT_SELECTDEVS ) + if( HAVE_DEVSTAT_DEVSTAT_SELECTDEVS ) + set( DEVSTAT_LIBRARIES devstat ) + endif( ) + endif( HAVE_DEVSTAT_SELECTDEVS ) + endif ( BUILD_KSIM ) @@ -185,6 +196,13 @@ if ( BUILD_SUPERKARAMBA ) if( WITH_XMMS ) set( HAVE_XMMS 1 ) endif( WITH_XMMS ) + + if( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" ) + check_library_exists( kvm kvm_getswapinfo "" HAVE_LIBKVM ) + if( HAVE_LIBKVM ) + set( LIBKVM_LIBRARIES kvm ) + endif( ) + endif( ) endif ( BUILD_SUPERKARAMBA ) |