]> sigrok.org Git - libserialport.git/commitdiff
configure: Check whether clock_gettime is available.
authorMartin Ling <redacted>
Sun, 23 Sep 2018 16:22:20 +0000 (17:22 +0100)
committerMartin Ling <redacted>
Sat, 28 Dec 2019 21:02:19 +0000 (22:02 +0100)
configure.ac

index 3e19f41493bddb604b014e687fea0bc3ee3aa345..3baeaab2ab929d876d54f8dae146ed2572e3453e 100644 (file)
@@ -129,6 +129,10 @@ AC_CHECK_TYPES([struct serial_struct],,, [[#include <linux/serial.h>]])
 # Check for realpath().
 AC_CHECK_FUNC([realpath], [AC_DEFINE(HAVE_REALPATH, 1, [realpath is available.])], [])
 
+# Check for clock_gettime().
+AC_CHECK_FUNC([clock_gettime],
+       [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [clock_gettime is available.])], [])
+
 AC_CACHE_CHECK([for visibility control], [sp_cv_visibility_control], [
        sp_saved_CFLAGS=$CFLAGS
        CFLAGS="$CFLAGS -Werror"