summaryrefslogtreecommitdiff
path: root/src/gc/unix/configure.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/gc/unix/configure.cmake')
-rw-r--r--src/gc/unix/configure.cmake17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/gc/unix/configure.cmake b/src/gc/unix/configure.cmake
index 6e1e8fe27d..5f2bdbd8b3 100644
--- a/src/gc/unix/configure.cmake
+++ b/src/gc/unix/configure.cmake
@@ -37,4 +37,19 @@ check_cxx_source_runs("
}
" HAVE_SCHED_GETCPU)
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) \ No newline at end of file
+check_library_exists(pthread pthread_condattr_setclock "" HAVE_PTHREAD_CONDATTR_SETCLOCK)
+
+check_cxx_source_runs("
+ #include <stdlib.h>
+ #include <mach/mach_time.h>
+ int main()
+ {
+ int ret;
+ mach_timebase_info_data_t timebaseInfo;
+ ret = mach_timebase_info(&timebaseInfo);
+ mach_absolute_time();
+ exit(ret);
+ }
+ " HAVE_MACH_ABSOLUTE_TIME)
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)