Debian Codegraph @

m4/iswblank.m4

raw
1 # iswblank.m4
2 # serial 7
3 dnl Copyright (C) 2011-2024 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_ISWBLANK],
10 [
11 AC_REQUIRE([gl_WCTYPE_H_DEFAULTS])
12 AC_REQUIRE([gl_WCTYPE_H])
13 dnl Persuade glibc <wctype.h> to declare iswblank().
14 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
15 gl_CHECK_FUNCS_ANDROID([iswblank], [[#include <wctype.h>]])
16 AC_CHECK_DECLS([iswblank], , , [[
17 #include <wchar.h>
18 #include <wctype.h>
19 ]])
20 if test $ac_cv_func_iswblank = no; then
21 HAVE_ISWBLANK=0
22 if test $ac_cv_have_decl_iswblank = yes \
23 || case "$gl_cv_onwards_func_iswblank" in \
24 future*) true ;; \
25 *) false ;; \
26 esac; then
27 REPLACE_ISWBLANK=1
28 fi
29 fi
30 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
31 dnl Redefine all of iswcntrl, ..., towupper in <wctype.h>.
32 :
33 else
34 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
35 dnl Redefine only iswblank.
36 :
37 fi
38 fi
39
40 ])