mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-07 04:33:44 -05:00
Add support for monotonic timestamps
This commit is contained in:
parent
a73ad3f265
commit
309a274454
28 changed files with 77 additions and 25 deletions
16
configure.in
16
configure.in
|
|
@ -241,6 +241,22 @@ else
|
|||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
dnl Check for librt
|
||||
AC_MSG_CHECKING(for librt)
|
||||
AC_ARG_WITH(librt,
|
||||
AS_HELP_STRING([--with-librt], [Use librt for monotonic clock (default = yes)]),
|
||||
[ have_librt="$withval" ], [ have_librt="yes" ])
|
||||
if test "$have_librt" = "yes"; then
|
||||
AC_CHECK_LIB([rt], [clock_gettime], [HAVE_LIBRT="yes"])
|
||||
if test "$HAVE_LIBRT" = "yes" ; then
|
||||
ALSA_DEPLIBS="$ALSA_DEPLIBS -lrt"
|
||||
AC_DEFINE([HAVE_LIBRT], 1, [Have librt])
|
||||
AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [Have clock gettime])
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
AC_SUBST(ALSA_DEPLIBS)
|
||||
|
||||
dnl Check for architecture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue