mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-11 04:46:18 +03:00
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #18077
14 lines
427 B
Plaintext
14 lines
427 B
Plaintext
dnl # SPDX-License-Identifier: CDDL-1.0
|
|
dnl #
|
|
dnl # Check if librt is required for clock_gettime.
|
|
dnl # clock_gettime is generally available in libc on modern systems.
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER_CLOCK_GETTIME], [
|
|
AC_CHECK_FUNC([clock_gettime], [], [
|
|
AC_CHECK_LIB([rt], [clock_gettime], [
|
|
AC_SUBST([LIBCLOCK_GETTIME], [-lrt])], [
|
|
AC_MSG_FAILURE([*** clock_gettime is missing in libc and librt])
|
|
])
|
|
])
|
|
])
|