annotate m4/wchar.m4 @ 285:9010796c6253 2.3 2.3.1

Generated manual for distribution
author lost
date Fri, 24 Apr 2009 22:36:09 +0000
parents 2cb097e760a5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
1 dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
2
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
3 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
4 dnl This file is free software; the Free Software Foundation
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
5 dnl gives unlimited permission to copy and/or distribute it,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
6 dnl with or without modifications, as long as this notice is preserved.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
7
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
8 dnl Written by Eric Blake.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
9
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
10 # wchar.m4 serial 22
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
11
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
12 AC_DEFUN([gl_WCHAR_H],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
13 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
14 AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
15 AC_CACHE_CHECK([whether <wchar.h> is standalone],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
16 [gl_cv_header_wchar_h_standalone],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
17 [AC_COMPILE_IFELSE([[#include <wchar.h>
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
18 wchar_t w;]],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
19 [gl_cv_header_wchar_h_standalone=yes],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
20 [gl_cv_header_wchar_h_standalone=no])])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
21
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
22 AC_REQUIRE([gt_TYPE_WINT_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
23 if test $gt_cv_c_wint_t = yes; then
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
24 HAVE_WINT_T=1
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
25 else
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
26 HAVE_WINT_T=0
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
27 fi
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
28 AC_SUBST([HAVE_WINT_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
29
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
30 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
31 WCHAR_H=wchar.h
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
32 fi
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
33
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
34 dnl Prepare for creating substitute <wchar.h>.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
35 dnl Do it always: WCHAR_H may be empty here but can be set later.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
36 dnl Check for <wchar.h> (missing in Linux uClibc when built without wide
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
37 dnl character support).
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
38 AC_CHECK_HEADERS_ONCE([wchar.h])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
39 if test $ac_cv_header_wchar_h = yes; then
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
40 HAVE_WCHAR_H=1
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
41 else
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
42 HAVE_WCHAR_H=0
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
43 fi
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
44 AC_SUBST([HAVE_WCHAR_H])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
45 gl_CHECK_NEXT_HEADERS([wchar.h])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
46 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
47
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
48 dnl Unconditionally enables the replacement of <wchar.h>.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
49 AC_DEFUN([gl_REPLACE_WCHAR_H],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
50 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
51 AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
52 WCHAR_H=wchar.h
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
53 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
54
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
55 AC_DEFUN([gl_WCHAR_MODULE_INDICATOR],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
56 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
57 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
58 AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
59 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
60 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
61
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
62 AC_DEFUN([gl_WCHAR_H_DEFAULTS],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
63 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
64 GNULIB_BTOWC=0; AC_SUBST([GNULIB_BTOWC])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
65 GNULIB_WCTOB=0; AC_SUBST([GNULIB_WCTOB])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
66 GNULIB_MBSINIT=0; AC_SUBST([GNULIB_MBSINIT])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
67 GNULIB_MBRTOWC=0; AC_SUBST([GNULIB_MBRTOWC])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
68 GNULIB_MBRLEN=0; AC_SUBST([GNULIB_MBRLEN])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
69 GNULIB_MBSRTOWCS=0; AC_SUBST([GNULIB_MBSRTOWCS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
70 GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
71 GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
72 GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
73 GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
74 GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
75 dnl Assume proper GNU behavior unless another module says otherwise.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
76 HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
77 HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
78 HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
79 HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
80 HAVE_MBSRTOWCS=1; AC_SUBST([HAVE_MBSRTOWCS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
81 HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
82 HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
83 HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
84 HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
85 HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
86 HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
87 REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
88 REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
89 REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
90 REPLACE_MBSINIT=0; AC_SUBST([REPLACE_MBSINIT])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
91 REPLACE_MBRTOWC=0; AC_SUBST([REPLACE_MBRTOWC])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
92 REPLACE_MBRLEN=0; AC_SUBST([REPLACE_MBRLEN])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
93 REPLACE_MBSRTOWCS=0; AC_SUBST([REPLACE_MBSRTOWCS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
94 REPLACE_MBSNRTOWCS=0;AC_SUBST([REPLACE_MBSNRTOWCS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
95 REPLACE_WCRTOMB=0; AC_SUBST([REPLACE_WCRTOMB])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
96 REPLACE_WCSRTOMBS=0; AC_SUBST([REPLACE_WCSRTOMBS])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
97 REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
98 WCHAR_H=''; AC_SUBST([WCHAR_H])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
99 ])