Skip to content

Commit

Permalink
configure.ac: add check for getentropy() (#1)
Browse files Browse the repository at this point in the history
getentropy() requires glibc >=2.25
defines HAVE_GETENTROPY if callable
  • Loading branch information
anzz1 committed Aug 1, 2023
1 parent 71b1b46 commit 977c00f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down

0 comments on commit 977c00f

Please sign in to comment.