immutable: Add tests.
[gnulib.git] / m4 / getentropy.m4
blobca02cf7097da4c0e34ae88e8ab478c365e272491
1 # getentropy.m4
2 dnl Copyright 2020-2021 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 dnl Written by Paul Eggert.
9 AC_DEFUN([gl_FUNC_GETENTROPY],
11   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
12   AC_CHECK_FUNCS_ONCE([getentropy])
13   if test $ac_cv_func_getentropy = no; then
14     HAVE_GETENTROPY=0
15   fi