summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 289dd8c..cd05fca 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -24,3 +24,25 @@ tde_setup_largefiles( )
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( )
+
+
+##### check for lm-sensors
+
+find_path( SENSORS_INCLUDE_DIRS "sensors/sensors.h" )
+if( SENSORS_INCLUDE_DIRS )
+ set( SENSORS_INCLUDE_DIRS "${SENSORS_INCLUDE_DIRS}" )
+ find_library( SENSORS_LIBRARIES sensors )
+ if( SENSORS_LIBRARIES )
+ set( SENSORS_LIBRARIES "${SENSORS_LIBRARIES}" )
+ endif()
+ else()
+ tde_message_fatal( "lm-sensors library is required but was not found on your system" )
+endif()
+
+
+##### check for the math libc
+
+find_library( MATH_LIBC m )
+if( MATH_LIBC )
+ set( MATH_LIBC "${MATH_LIBC}" )
+endif()