1119418Sobrien# wchar_t.m4 serial 1 (gettext-0.12) 291396Stmmdnl Copyright (C) 2002-2003 Free Software Foundation, Inc. 3178589Smariusdnl This file is free software; the Free Software Foundation 491396Stmmdnl gives unlimited permission to copy and/or distribute it, 591396Stmmdnl with or without modifications, as long as this notice is preserved. 691396Stmm 791396Stmmdnl From Bruno Haible. 891396Stmmdnl Test whether <stddef.h> has the 'wchar_t' type. 991396Stmmdnl Prerequisite: AC_PROG_CC 1091396Stmm 1191396StmmAC_DEFUN([gt_TYPE_WCHAR_T], 1291396Stmm[ 1391396Stmm AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, 1491396Stmm [AC_TRY_COMPILE([#include <stddef.h> 1591396Stmm wchar_t foo = (wchar_t)'\0';], , 1691396Stmm gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) 1791396Stmm if test $gt_cv_c_wchar_t = yes; then 1891396Stmm AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) 1991396Stmm fi 2091396Stmm]) 2191396Stmm