From 040c84343b09924bbd96902f502cb2179d8f63a7 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sun, 3 Nov 2013 15:00:19 +0100 Subject: [PATCH] Don't bail out if configure (without --with-curses) does not find libcurses. Only fail when --with-curses was requested and libcurses cannot be found. --- configure.ac | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9207671..c2be5bb 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ AC_MSG_NOTICE([libs]) # curses AC_ARG_WITH([curses], [AS_HELP_STRING([--with-curses], - [enable curses UI])], + [enable curses UI (default: yes if available)])], [], [with_curses=check]) @@ -41,8 +41,9 @@ AS_IF([test "x$with_curses" != xno], AC_DEFINE([HAVE_LIBCURSES], [1], [Define if you have lib]) ], - [AC_MSG_ERROR( - [--with-curses was given, but test for curses failed])], + [AS_IF([test "x$with_curses" = xyes], + [AC_MSG_ERROR( + [--with-curses was given, but test for curses failed])])], [-ltermcap])]) # other libraries. -- 1.7.0.4