configure.ac: Detect wchar_t using wchar.h header

The wchar_t type is defined in `wchar.h` and if this header is not
included by autoconf the detection of the type will fail.  This type is
required by `unicharset_extractor` to autogenerate the character
properties.

This problem was detected when running under Fedora 21.
This commit is contained in:
John Slade 2015-10-05 11:20:34 +01:00 committed by Zdenko Podobný
parent a153a51f39
commit 85c404e582

View File

@ -411,7 +411,7 @@ AC_CHECK_FUNCS([getline])
# Checks for typedefs, structures, and compiler characteristics.
# ----------------------------------------
AC_CHECK_TYPES(wchar_t)
AC_CHECK_TYPES(wchar_t,,,[#include "wchar.h"])
AC_CHECK_TYPES(long long int)
AC_CHECK_TYPES(mbstate_t,,,[#include "wchar.h"])