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