findprog, relocatable-prog: Ignore directories during PATH search.
[gnulib.git] / m4 / explicit_bzero.m4
blob507816affdbcfc1e3a6f8882df09518dab4a0d03
1 dnl Copyright 2017-2020 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.
6 AC_DEFUN([gl_FUNC_EXPLICIT_BZERO],
8   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
10   dnl Persuade glibc <string.h> to declare explicit_bzero.
11   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
13   AC_CHECK_FUNCS_ONCE([explicit_bzero])
14   if test $ac_cv_func_explicit_bzero = no; then
15     HAVE_EXPLICIT_BZERO=0
16   fi
19 AC_DEFUN([gl_PREREQ_EXPLICIT_BZERO],
21   AC_CHECK_FUNCS([explicit_memset])