Blame m4/wchar_t.m4

Packit Service 9f2c4a
# wchar_t.m4 serial 1 (gettext-0.12)
Packit Service 9f2c4a
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
Packit Service 9f2c4a
dnl This file is free software, distributed under the terms of the GNU
Packit Service 9f2c4a
dnl General Public License.  As a special exception to the GNU General
Packit Service 9f2c4a
dnl Public License, this file may be distributed as part of a program
Packit Service 9f2c4a
dnl that contains a configuration script generated by Autoconf, under
Packit Service 9f2c4a
dnl the same distribution terms as the rest of that program.
Packit Service 9f2c4a
Packit Service 9f2c4a
dnl From Bruno Haible.
Packit Service 9f2c4a
dnl Test whether <stddef.h> has the 'wchar_t' type.
Packit Service 9f2c4a
dnl Prerequisite: AC_PROG_CC
Packit Service 9f2c4a
Packit Service 9f2c4a
AC_DEFUN([gt_TYPE_WCHAR_T],
Packit Service 9f2c4a
[
Packit Service 9f2c4a
  AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
Packit Service 9f2c4a
    [AC_TRY_COMPILE([#include <stddef.h>
Packit Service 9f2c4a
       wchar_t foo = (wchar_t)'\0';], ,
Packit Service 9f2c4a
       gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
Packit Service 9f2c4a
  if test $gt_cv_c_wchar_t = yes; then
Packit Service 9f2c4a
    AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
Packit Service 9f2c4a
  fi
Packit Service 9f2c4a
])