2N/A# wchar_t.m4 serial 4 (gettext-0.18.2)
2N/Adnl Copyright (C) 2002-2003, 2008-2010 Free Software Foundation, Inc.
2N/Adnl This file is free software; the Free Software Foundation
2N/Adnl gives unlimited permission to copy and/or distribute it,
2N/Adnl with or without modifications, as long as this notice is preserved.
2N/A
2N/Adnl From Bruno Haible.
2N/Adnl Test whether <stddef.h> has the 'wchar_t' type.
2N/Adnl Prerequisite: AC_PROG_CC
2N/A
2N/AAC_DEFUN([gt_TYPE_WCHAR_T],
2N/A[
2N/A AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t],
2N/A [AC_COMPILE_IFELSE(
2N/A [AC_LANG_PROGRAM(
2N/A [[#include <stddef.h>
2N/A wchar_t foo = (wchar_t)'\0';]],
2N/A [[]])],
2N/A [gt_cv_c_wchar_t=yes],
2N/A [gt_cv_c_wchar_t=no])])
2N/A if test $gt_cv_c_wchar_t = yes; then
2N/A AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.])
2N/A fi
2N/A])