You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
422 B
16 lines
422 B
dnl Tries to determine whether clock_gettime is useable.
|
|
dnl
|
|
AC_DEFUN([AX_CXX_CLOCK_GETTIME], [
|
|
AC_MSG_CHECKING([for clock_gettime useability])
|
|
AC_LANG_PUSH(C++)
|
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
|
#include <time.h>
|
|
int main() {
|
|
struct timespec tv;
|
|
return clock_gettime(CLOCK_REALTIME, &tv);
|
|
}
|
|
])], [ax_cxx_clock_gettime="yes"], [ax_cxx_clock_gettime="no"])
|
|
AC_LANG_POP(C++)
|
|
AC_MSG_RESULT([$ax_cxx_clock_gettime])
|
|
])
|
|
|