source: filezilla/trunk/fuentes/m4/check_steady_clock.m4 @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 613 bytes
Line 
1dnl Checks whether std::chrono::steady_clock is steady
2dnl Unfortunately it is not always steady.
3
4AC_DEFUN([CHECK_STEADY_CLOCK], [
5
6  AC_LANG_PUSH(C++)
7
8  AC_MSG_CHECKING([whether std::chrono::steady_clock is steady])
9
10  AC_COMPILE_IFELSE([
11    AC_LANG_PROGRAM([[
12      #include <chrono>
13    ]], [[
14      static_assert(std::chrono::steady_clock::is_steady, "steady_clock isn't steady");
15      return std::chrono::steady_clock::is_steady ? 0 : 1;
16    ]])
17  ], [
18    AC_MSG_RESULT([yes])
19  ], [
20    AC_MSG_RESULT([no])
21    AC_MSG_ERROR([a steady std::chrono::steady_clock is required])
22  ])
23
24  AC_LANG_POP(C++)
25])
Note: See TracBrowser for help on using the repository browser.