summaryrefslogtreecommitdiff
path: root/m4/getrandom.m4
blob: ecb44aebf7680675e4d8762e2f53210e7857955f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# getrandom.m4
dnl Copyright 2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

dnl Written by Paul Eggert.

AC_DEFUN([gl_FUNC_GETRANDOM],
[
  AC_CHECK_FUNCS_ONCE([getrandom])
  if test "$ac_cv_func_getrandom" != yes; then
    HAVE_GETRANDOM=0
  fi
])