install-reloc: Support multi-binary installation.
[gnulib.git] / m4 / mbsnrtowcs.m4
1 # mbsnrtowcs.m4 serial 4
2 dnl Copyright (C) 2008, 2010-2013 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 ])
26
27 # Prerequisites of lib/mbsnrtowcs.c.
28 AC_DEFUN([gl_PREREQ_MBSNRTOWCS], [
29   :
30 ])