mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
configure: Check whether clock_gettime is available.
This commit is contained in:
parent
573feabc63
commit
46bdc20c26
@ -129,6 +129,10 @@ AC_CHECK_TYPES([struct serial_struct],,, [[#include <linux/serial.h>]])
|
|||||||
# Check for realpath().
|
# Check for realpath().
|
||||||
AC_CHECK_FUNC([realpath], [AC_DEFINE(HAVE_REALPATH, 1, [realpath is available.])], [])
|
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], [
|
AC_CACHE_CHECK([for visibility control], [sp_cv_visibility_control], [
|
||||||
sp_saved_CFLAGS=$CFLAGS
|
sp_saved_CFLAGS=$CFLAGS
|
||||||
CFLAGS="$CFLAGS -Werror"
|
CFLAGS="$CFLAGS -Werror"
|
||||||
|
Loading…
Reference in New Issue
Block a user