From 15aad09ce73e1a71837579be96348c8708c127ea Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 29 Nov 2009 22:44:56 -0800 Subject: Check for the pthread_setschedparam function --- CMakeLists.txt | 2 ++ config.h.in | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10f0214f..512bb95a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -247,6 +247,8 @@ IF(NOT HAVE_WINDOWS_H) SET(EXTRA_LIBS pthread ${EXTRA_LIBS}) ENDIF() + CHECK_LIBRARY_EXISTS(pthread pthread_setschedparam "" HAVE_PTHREAD_SETSCHEDPARAM) + CHECK_LIBRARY_EXISTS(rt clock_gettime "" HAVE_LIBRT) IF(HAVE_LIBRT) SET(EXTRA_LIBS rt ${EXTRA_LIBS}) diff --git a/config.h.in b/config.h.in index 93c13a63..8ccdf547 100644 --- a/config.h.in +++ b/config.h.in @@ -79,4 +79,7 @@ /* Define if we have _controlfp() */ #cmakedefine HAVE__CONTROLFP +/* Define if we have pthread_setschedparam() */ +#cmakedefine HAVE_PTHREAD_SETSCHEDPARAM + #endif -- cgit v1.2.3