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
parent 449fc8af29
commit 2517ffefe7

View File

@ -314,7 +314,7 @@ AC_SYS_LARGEFILE
# 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"])