source: trunk/src/sed/m4/explicit_bzero.m4

Last change on this file was 3611, checked in by bird, 14 months ago

vendor/sed/current: GNU sed 4.9 (sed-4.9.tar.xz sha256:6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181)

File size: 661 bytes
Line 
1dnl Copyright 2017-2022 Free Software Foundation, Inc.
2dnl This file is free software; the Free Software Foundation
3dnl gives unlimited permission to copy and/or distribute it,
4dnl with or without modifications, as long as this notice is preserved.
5
6AC_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
19AC_DEFUN([gl_PREREQ_EXPLICIT_BZERO],
20[
21 AC_CHECK_FUNCS([explicit_memset])
22 AC_CHECK_FUNCS_ONCE([memset_s])
23])
Note: See TracBrowser for help on using the repository browser.