* doc/bison.texinfo (Bison Options): Escape `@' in `$@'.
[bison.git] / m4 / mbrtowc.m4
CommitLineData
f61aad93 1# mbrtowc.m4 serial 5
1a929557
PE
2dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
3dnl This file is free software, distributed under the terms of the GNU
4dnl General Public License. As a special exception to the GNU General
5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
342b8b6e
AD
8
9dnl From Paul Eggert
10
f61aad93
PE
11dnl This file can be removed, and jm_FUNC_MBRTOWC replaced with
12dnl AC_FUNC_MBRTOWC, when autoconf 2.57 can be assumed everywhere.
13
342b8b6e
AD
14AC_DEFUN([jm_FUNC_MBRTOWC],
15[
16 AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
17 jm_cv_func_mbrtowc,
18 [AC_TRY_LINK(
19 [#include <wchar.h>],
20 [mbstate_t state; return ! (sizeof state && mbrtowc);],
21 jm_cv_func_mbrtowc=yes,
22 jm_cv_func_mbrtowc=no)])
23 if test $jm_cv_func_mbrtowc = yes; then
24 AC_DEFINE(HAVE_MBRTOWC, 1,
25 [Define to 1 if mbrtowc and mbstate_t are properly declared.])
26 fi
27])