From: Yann Dirson Date: Sun, 3 Nov 2013 14:00:19 +0000 (+0100) Subject: Don't bail out if configure (without --with-curses) does not find libcurses. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=040c84343b09924bbd96902f502cb2179d8f63a7;p=gnushogi.git 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. --- 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.