build: drop the check for two functions that we don't use any more
Since commitsmasterb0209374
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.
parent
ec82530125
commit
6823831c06
|
@ -350,7 +350,7 @@ fi])
|
||||||
dnl Checks for functions.
|
dnl Checks for functions.
|
||||||
|
|
||||||
if test "x$enable_utf8" != xno; then
|
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
|
fi
|
||||||
|
|
||||||
dnl Checks for available flags.
|
dnl Checks for available flags.
|
||||||
|
@ -435,11 +435,10 @@ AC_SUBST(CURSES_LIB)
|
||||||
|
|
||||||
if test "x$enable_utf8" != xno && \
|
if test "x$enable_utf8" != xno && \
|
||||||
test x$CURSES_LIB_WIDE = xyes && \
|
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_iswalnum = xyes && \
|
||||||
test x$ac_cv_func_iswpunct = 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_mbstowcs = xyes && \
|
||||||
test x$ac_cv_func_mbtowc = xyes && \
|
|
||||||
test x$ac_cv_func_wctomb = xyes; then
|
test x$ac_cv_func_wctomb = xyes; then
|
||||||
AC_DEFINE(ENABLE_UTF8, 1, [Define this if your system has sufficient UTF-8 support.])
|
AC_DEFINE(ENABLE_UTF8, 1, [Define this if your system has sufficient UTF-8 support.])
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue