| 1 |
# mbtowc.m4 |
| 2 |
# serial 5 |
| 3 |
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc. |
| 4 |
dnl This file is free software; the Free Software Foundation |
| 5 |
dnl gives unlimited permission to copy and/or distribute it, |
| 6 |
dnl with or without modifications, as long as this notice is preserved. |
| 7 |
dnl This file is offered as-is, without any warranty. |
| 8 |
|
| 9 |
AC_DEFUN([gl_FUNC_MBTOWC], |
| 10 |
[ |
| 11 |
AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) |
| 12 |
|
| 13 |
gl_CHECK_FUNCS_ANDROID([mbtowc], [[#include <stdlib.h>]]) |
| 14 |
if test $ac_cv_func_mbtowc = no; then |
| 15 |
HAVE_MBTOWC=0 |
| 16 |
case "$gl_cv_onwards_func_mbtowc" in |
| 17 |
future*) REPLACE_MBTOWC=1 ;; |
| 18 |
esac |
| 19 |
else |
| 20 |
if false; then |
| 21 |
REPLACE_MBTOWC=1 |
| 22 |
fi |
| 23 |
fi |
| 24 |
]) |
| 25 |
|
| 26 |
# Prerequisites of lib/mbtowc.c. |
| 27 |
AC_DEFUN([gl_PREREQ_MBTOWC], [ |
| 28 |
: |
| 29 |
]) |