commit 2867f1bbdebf2c8bf6fe5b4307b686b12e09b180
parent c4d2bf59fbd4a576c0778840188d407bfefbf061
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 2 Jan 2020 20:22:15 +0100
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.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
@@ -89,6 +89,12 @@ AC_CHECK_HEADERS(libintl.h limits.h pwd.h termios.h sys/param.h)
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,
AS_HELP_STRING([--disable-browser], [Disable the built-in file browser]))
if test "x$enable_tiny" = xyes; then
@@ -516,7 +522,6 @@ int main(void)
;;
esac], [AC_MSG_RESULT(no)])
-
dnl Checks for functions.
if test "x$enable_utf8" != xno; then