annotate m4/wint_t.m4 @ 423:079d43b6967b 3.0-beta2 3.0-beta2

Added missing file
author lost@l-w.ca
date Sun, 19 Sep 2010 01:44:47 -0600
parents 3c2e1f24cc7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
421
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
1 # wint_t.m4 serial 4 (gettext-0.18)
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
2 dnl Copyright (C) 2003, 2007-2010 Free Software Foundation, Inc.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
6
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
7 dnl From Bruno Haible.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
8 dnl Test whether <wchar.h> has the 'wint_t' type.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
9 dnl Prerequisite: AC_PROG_CC
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
10
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
11 AC_DEFUN([gt_TYPE_WINT_T],
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
12 [
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
13 AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
14 [AC_TRY_COMPILE([
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
15 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
16 <wchar.h>.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
17 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
18 before <wchar.h>. */
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
19 #include <stddef.h>
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
20 #include <stdio.h>
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
21 #include <time.h>
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
22 #include <wchar.h>
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
23 wint_t foo = (wchar_t)'\0';], ,
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
24 [gt_cv_c_wint_t=yes], [gt_cv_c_wint_t=no])])
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
25 if test $gt_cv_c_wint_t = yes; then
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
26 AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.])
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
27 fi
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
28 ])