From b564905756be18c5bfe53c7656f54cda4e44de77 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Wed, 9 May 2012 15:45:42 -0700 Subject: [PATCH] microcode/configure.ac: error if --with-termcap=no on Unix. The build will fail without a termcap-ish library in LIBS because of references to e.g. tgetent in uxtty.c. --- src/microcode/configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index 1acd4980b..3e2e3a32b 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -164,6 +164,11 @@ AC_ARG_WITH([termcap], AS_HELP_STRING([--with-termcap], [Use a termcap library if available [[yes]]])) : ${with_termcap='yes'} +if test "x${with_termcap}" = xno; then + dnl On Unix (in uxtty.c) primitives like tty-command-clear require + dnl some kind of termcap. A build without-termcap is not possible. + AC_MSG_ERROR([--without-termcap is not supported on Unix systems]) +fi dnl For reasons I don't understand, it is necessary to use dnl quadigraphs here instead of [[ ... ]]. -- 2.25.1