| 1 |
# memrchr.m4 |
| 2 |
# serial 11 |
| 3 |
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2024 Free Software Foundation, |
| 4 |
dnl Inc. |
| 5 |
dnl This file is free software; the Free Software Foundation |
| 6 |
dnl gives unlimited permission to copy and/or distribute it, |
| 7 |
dnl with or without modifications, as long as this notice is preserved. |
| 8 |
dnl This file is offered as-is, without any warranty. |
| 9 |
|
| 10 |
AC_DEFUN([gl_FUNC_MEMRCHR], |
| 11 |
[ |
| 12 |
dnl Persuade glibc <string.h> to declare memrchr(). |
| 13 |
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) |
| 14 |
|
| 15 |
AC_REQUIRE([gl_STRING_H_DEFAULTS]) |
| 16 |
AC_CHECK_DECLS_ONCE([memrchr]) |
| 17 |
if test $ac_cv_have_decl_memrchr = no; then |
| 18 |
HAVE_DECL_MEMRCHR=0 |
| 19 |
fi |
| 20 |
|
| 21 |
AC_CHECK_FUNCS([memrchr]) |
| 22 |
]) |
| 23 |
|
| 24 |
# Prerequisites of lib/memrchr.c. |
| 25 |
AC_DEFUN([gl_PREREQ_MEMRCHR], [:]) |