Mercurial > hg > octave-lyh > gnulib-hg
changeset 2774:5789e57d5d8b
(jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 24 Jul 2000 06:42:17 +0000 |
parents | dd88c0c8c8f2 |
children | afd68d0b9fc1 |
files | m4/mbswidth.m4 |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/mbswidth.m4 +++ b/m4/mbswidth.m4 @@ -1,4 +1,4 @@ -#serial 1 +#serial 2 dnl autoconf tests required for use of mbswidth.c dnl From Bruno Haible. @@ -9,5 +9,11 @@ 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) + headers=' +# if HAVE_WCHAR_H +# include <wchar.h> +# endif +' + AC_CHECK_DECLS([wcwidth], , , $headers) AC_MBSTATE_T ])