configure.ac: add check for getentropy() (#1)

getentropy() requires glibc >=2.25
defines HAVE_GETENTROPY if callable
pull/2000/head
anzz1 2023-08-01 18:11:13 +03:00 committed by GitHub
parent 71b1b4634f
commit 977c00f48d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -911,6 +911,9 @@ AC_CHECK_FUNCS([gettimeofday],
AC_CHECK_FUNCS([strptime],
[AM_CONDITIONAL([HAVE_STRPTIME], true)],
[AM_CONDITIONAL([HAVE_STRPTIME], false)])
AC_CHECK_FUNCS([getentropy],
[AM_CONDITIONAL([HAVE_GETENTROPY], true)],
[AM_CONDITIONAL([HAVE_GETENTROPY], false)])
AC_CHECK_FUNCS([daemon], [have_daemon=yes])
AM_CONDITIONAL([HAVE_DAEMON], [test "x$have_daemon" = "xyes"])