summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-17 20:40:18 +0000
committerJim Meyering <jim@meyering.net>2000-07-17 20:40:18 +0000
commitef93322b25ffc433a05d8e38357dcae07726d2dd (patch)
tree39dc5b11c93a3ecc0c2190879a4af5415292c9ef /m4
parent27e5b4d0c3fa06798fbefbd9dfddea28a8364080 (diff)
downloadcoreutils-ef93322b25ffc433a05d8e38357dcae07726d2dd.tar.xz
*** empty log message ***
Diffstat (limited to 'm4')
-rw-r--r--m4/mbswidth.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/mbswidth.m4 b/m4/mbswidth.m4
new file mode 100644
index 000000000..d18b26dc5
--- /dev/null
+++ b/m4/mbswidth.m4
@@ -0,0 +1,13 @@
+#serial 1
+
+dnl autoconf tests required for use of mbswidth.c
+dnl From Bruno Haible.
+
+AC_DEFUN(jm_PREREQ_MBSWIDTH,
+[
+ AC_REQUIRE([AC_HEADER_STDC])
+ AC_REQUIRE([AM_C_PROTOTYPES])
+ AC_CHECK_HEADERS(limits.h stdlib.h string.h wchar.h wctype.h)
+ AC_CHECK_FUNCS(isascii iswprint mbrtowc wcwidth)
+ AC_MBSTATE_T
+])