Build: Fix ARM64 CRC32 instruction feature test.
[xz.git] / m4 / tuklib_mbstr.m4
blob01398347c7545f114f5976f5cfec584774506984
1 # SPDX-License-Identifier: 0BSD
3 #############################################################################
5 # SYNOPSIS
7 #   TUKLIB_MBSTR
9 # DESCRIPTION
11 #   Check if multibyte and wide character functionality is available
12 #   for use by tuklib_mbstr_* functions. If not enough multibyte string
13 #   support is available in the C library, the functions keep working
14 #   with the assumption that all strings are a in single-byte character
15 #   set without combining characters, e.g. US-ASCII or ISO-8859-*.
17 #   This .m4 file and tuklib_mbstr.h are common to all tuklib_mbstr_*
18 #   functions, but each function is put into a separate .c file so
19 #   that it is possible to pick only what is strictly needed.
21 #############################################################################
23 # Author: Lasse Collin
25 #############################################################################
27 AC_DEFUN_ONCE([TUKLIB_MBSTR], [
28 AC_REQUIRE([TUKLIB_COMMON])
29 AC_FUNC_MBRTOWC
30 AC_CHECK_FUNCS([wcwidth])
31 ])dnl