|
|
@ -19,6 +19,36 @@ check_include_file( linux/inotify.h HAVE_INOTIFY )
|
|
|
|
check_function_exists( statvfs HAVE_STATVFS )
|
|
|
|
check_function_exists( statvfs HAVE_STATVFS )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sched_setaffinity buggy glibc check
|
|
|
|
|
|
|
|
check_c_source_compiles("
|
|
|
|
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
|
|
|
|
#include <sched.h>
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
cpu_set_t mask;
|
|
|
|
|
|
|
|
CPU_ZERO(&mask);
|
|
|
|
|
|
|
|
CPU_SET(0, &mask);
|
|
|
|
|
|
|
|
sched_setaffinity(0, sizeof(mask), &mask);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
} "
|
|
|
|
|
|
|
|
SCHEDAFFINITY_3PARAMS )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( SCHEDAFFINITY_3PARAMS )
|
|
|
|
|
|
|
|
set( SCHEDAFFINITY_SUPPORT 1 )
|
|
|
|
|
|
|
|
else( )
|
|
|
|
|
|
|
|
check_c_source_compiles("
|
|
|
|
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
|
|
|
|
#include <sched.h>
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
cpu_set_t mask;
|
|
|
|
|
|
|
|
CPU_ZERO(&mask);
|
|
|
|
|
|
|
|
CPU_SET(0, &mask);
|
|
|
|
|
|
|
|
sched_setaffinity(0, &mask);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
} "
|
|
|
|
|
|
|
|
SCHEDAFFINITY_SUPPORT )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# fabsf
|
|
|
|
# fabsf
|
|
|
|
tde_save( CMAKE_REQUIRED_LIBRARIES )
|
|
|
|
tde_save( CMAKE_REQUIRED_LIBRARIES )
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES m )
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES m )
|
|
|
|