Blame m4/explicit_bzero.m4
|
Packit Service |
4684c1 |
dnl Copyright 2017-2020 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
dnl This file is free software; the Free Software Foundation
|
|
Packit Service |
4684c1 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit Service |
4684c1 |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
AC_DEFUN([gl_FUNC_EXPLICIT_BZERO],
|
|
Packit Service |
4684c1 |
[
|
|
Packit Service |
4684c1 |
AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
dnl Persuade glibc <string.h> to declare explicit_bzero.
|
|
Packit Service |
4684c1 |
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
AC_CHECK_FUNCS_ONCE([explicit_bzero])
|
|
Packit Service |
4684c1 |
if test $ac_cv_func_explicit_bzero = no; then
|
|
Packit Service |
4684c1 |
HAVE_EXPLICIT_BZERO=0
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
])
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
AC_DEFUN([gl_PREREQ_EXPLICIT_BZERO],
|
|
Packit Service |
4684c1 |
[
|
|
Packit Service |
4684c1 |
AC_CHECK_FUNCS([explicit_memset])
|
|
Packit Service |
4684c1 |
AC_CHECK_FUNCS_ONCE([memset_s])
|
|
Packit Service |
4684c1 |
])
|