Bump to m4 1.4.19
[platform/upstream/m4.git] / m4 / explicit_bzero.m4
1 dnl Copyright 2017-2021 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 AC_DEFUN([gl_FUNC_EXPLICIT_BZERO],
7 [
8   AC_REQUIRE([gl_STRING_H_DEFAULTS])
9
10   dnl Persuade glibc <string.h> to declare explicit_bzero.
11   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
12
13   AC_CHECK_FUNCS_ONCE([explicit_bzero])
14   if test $ac_cv_func_explicit_bzero = no; then
15     HAVE_EXPLICIT_BZERO=0
16   fi
17 ])
18
19 AC_DEFUN([gl_PREREQ_EXPLICIT_BZERO],
20 [
21   AC_CHECK_FUNCS([explicit_memset])
22   AC_CHECK_FUNCS_ONCE([memset_s])
23 ])