summaryrefslogtreecommitdiffstats
path: root/gl/m4/iswblank.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/iswblank.m4')
-rw-r--r--gl/m4/iswblank.m440
1 files changed, 40 insertions, 0 deletions
diff --git a/gl/m4/iswblank.m4 b/gl/m4/iswblank.m4
new file mode 100644
index 00000000..2c301a97
--- /dev/null
+++ b/gl/m4/iswblank.m4
@@ -0,0 +1,40 @@
1# iswblank.m4
2# serial 7
3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
8
9AC_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])