diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 16:27:12 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 16:27:12 +0100 |
commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/m4/iswblank.m4 | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz |
Sync with the latest Gnulib code (d4ec02b3cc)
Diffstat (limited to 'gl/m4/iswblank.m4')
-rw-r--r-- | gl/m4/iswblank.m4 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gl/m4/iswblank.m4 b/gl/m4/iswblank.m4 new file mode 100644 index 00000000..4dc12d9a --- /dev/null +++ b/gl/m4/iswblank.m4 | |||
@@ -0,0 +1,39 @@ | |||
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 | |||
8 | AC_DEFUN([gl_FUNC_ISWBLANK], | ||
9 | [ | ||
10 | AC_REQUIRE([gl_WCTYPE_H_DEFAULTS]) | ||
11 | AC_REQUIRE([gl_WCTYPE_H]) | ||
12 | dnl Persuade glibc <wctype.h> to declare iswblank(). | ||
13 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
14 | gl_CHECK_FUNCS_ANDROID([iswblank], [[#include <wctype.h>]]) | ||
15 | AC_CHECK_DECLS([iswblank], , , [[ | ||
16 | #include <wchar.h> | ||
17 | #include <wctype.h> | ||
18 | ]]) | ||
19 | if test $ac_cv_func_iswblank = no; then | ||
20 | HAVE_ISWBLANK=0 | ||
21 | if test $ac_cv_have_decl_iswblank = yes \ | ||
22 | || case "$gl_cv_onwards_func_iswblank" in \ | ||
23 | future*) true ;; \ | ||
24 | *) false ;; \ | ||
25 | esac; then | ||
26 | REPLACE_ISWBLANK=1 | ||
27 | fi | ||
28 | fi | ||
29 | if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then | ||
30 | dnl Redefine all of iswcntrl, ..., towupper in <wctype.h>. | ||
31 | : | ||
32 | else | ||
33 | if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then | ||
34 | dnl Redefine only iswblank. | ||
35 | : | ||
36 | fi | ||
37 | fi | ||
38 | |||
39 | ]) | ||