build: restrict the use of --with-slang to together with --enable-tiny
Slang contains bugs that get triggered when resizing the terminal, or rather: when its existing data structures get reinitialized. Avoid those bugs by forcing the exclusion of the resizing code when nano is configured with --with-slang. (The only reason for not entirely eliminating the support for Slang is to allow Debian to build a tiny nano against Slang for on their install image.) This avoids https://savannah.gnu.org/bugs/?57520, and avoids https://savannah.gnu.org/bugs/?57518, and dodges https://savannah.gnu.org/bugs/?57513, and dodges https://savannah.gnu.org/bugs/?57507.master
parent
c4d2bf59fb
commit
2867f1bbde
|
@ -89,6 +89,12 @@ AC_CHECK_HEADERS(libintl.h limits.h pwd.h termios.h sys/param.h)
|
||||||
|
|
||||||
dnl Checks for options.
|
dnl Checks for options.
|
||||||
|
|
||||||
|
if test "x$with_slang" = xyes; then
|
||||||
|
if test "x$enable_tiny" != xyes; then
|
||||||
|
AC_MSG_ERROR([--with-slang is supported only together with --enable-tiny])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(browser,
|
AC_ARG_ENABLE(browser,
|
||||||
AS_HELP_STRING([--disable-browser], [Disable the built-in file browser]))
|
AS_HELP_STRING([--disable-browser], [Disable the built-in file browser]))
|
||||||
if test "x$enable_tiny" = xyes; then
|
if test "x$enable_tiny" = xyes; then
|
||||||
|
@ -516,7 +522,6 @@ int main(void)
|
||||||
;;
|
;;
|
||||||
esac], [AC_MSG_RESULT(no)])
|
esac], [AC_MSG_RESULT(no)])
|
||||||
|
|
||||||
|
|
||||||
dnl Checks for functions.
|
dnl Checks for functions.
|
||||||
|
|
||||||
if test "x$enable_utf8" != xno; then
|
if test "x$enable_utf8" != xno; then
|
||||||
|
|
Loading…
Reference in New Issue