mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-27 20:59:45 +03:00
build: drop the check for two functions that we don't use any more
Since commitsb0209374
and1c010d8e
from a month ago, nano does not use mblen() and mbtowc() any more, so there is no need to check for their presence. Instead, add a check for iswalpha(), which we do use.
This commit is contained in:
parent
ec82530125
commit
6823831c06
@ -350,7 +350,7 @@ fi])
|
||||
dnl Checks for functions.
|
||||
|
||||
if test "x$enable_utf8" != xno; then
|
||||
AC_CHECK_FUNCS(iswalnum iswpunct mblen mbstowcs mbtowc wctomb)
|
||||
AC_CHECK_FUNCS(iswalpha iswalnum iswpunct mbstowcs wctomb)
|
||||
fi
|
||||
|
||||
dnl Checks for available flags.
|
||||
@ -435,11 +435,10 @@ AC_SUBST(CURSES_LIB)
|
||||
|
||||
if test "x$enable_utf8" != xno && \
|
||||
test x$CURSES_LIB_WIDE = xyes && \
|
||||
test x$ac_cv_func_iswalpha = xyes && \
|
||||
test x$ac_cv_func_iswalnum = xyes && \
|
||||
test x$ac_cv_func_iswpunct = xyes && \
|
||||
test x$ac_cv_func_mblen = xyes && \
|
||||
test x$ac_cv_func_mbstowcs = xyes && \
|
||||
test x$ac_cv_func_mbtowc = xyes && \
|
||||
test x$ac_cv_func_wctomb = xyes; then
|
||||
AC_DEFINE(ENABLE_UTF8, 1, [Define this if your system has sufficient UTF-8 support.])
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user