5 AC_DEFUN([jm_FUNC_MBRTOWC],
7 AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
11 [mbstate_t state; return ! (sizeof state && mbrtowc);],
12 jm_cv_func_mbrtowc=yes,
13 jm_cv_func_mbrtowc=no)])
14 if test $jm_cv_func_mbrtowc = yes; then
15 AC_DEFINE(HAVE_MBRTOWC, 1,
16 [Define to 1 if mbrtowc and mbstate_t are properly declared.])