avoid some overlong lines from posix urls, etc.
[gnulib.git] / m4 / mbsnrtowcs.m4
1 # mbsnrtowcs.m4 serial 2
2 dnl Copyright (C) 2008, 2010 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_MBSNRTOWCS],
8 [
9   AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
10
11   dnl Persuade glibc <wchar.h> to declare mbsnrtowcs().
12   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
13
14   AC_REQUIRE([AC_TYPE_MBSTATE_T])
15   gl_MBSTATE_T_BROKEN
16
17   AC_CHECK_FUNCS_ONCE([mbsnrtowcs])
18   if test $ac_cv_func_mbsnrtowcs = no; then
19     HAVE_MBSNRTOWCS=0
20   else
21     if test $REPLACE_MBSTATE_T = 1; then
22       REPLACE_MBSNRTOWCS=1
23     fi
24   fi
25   if test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1; then
26     gl_REPLACE_WCHAR_H
27     AC_LIBOBJ([mbsnrtowcs])
28     AC_LIBOBJ([mbsrtowcs-state])
29     gl_PREREQ_MBSNRTOWCS
30   fi
31 ])
32
33 # Prerequisites of lib/mbsnrtowcs.c.
34 AC_DEFUN([gl_PREREQ_MBSNRTOWCS], [
35   :
36 ])