From: Karel Zak Date: Thu, 26 Mar 2015 10:50:15 +0000 (+0100) Subject: build-sys: ncurses is optional, don't fail when missing X-Git-Tag: v2.27-rc1~311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43cc76e2631f3b0255bb4817d59d98746f1c309b;p=thirdparty%2Futil-linux.git build-sys: ncurses is optional, don't fail when missing Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index f4a015ebcc..29ec86d765 100644 --- a/configure.ac +++ b/configure.ac @@ -755,9 +755,10 @@ AS_IF([test "x$with_ncurses" != xno], [ ]) ]) - AS_IF([test "x$have_ncurses" = xno], [ - AC_MSG_ERROR([ncurses or ncursesw selected, but library not found (--without-ncurses to disable)]) - ]) + AS_CASE([$with_ncurses:$have_ncurses], + [yes:no], [AC_MSG_ERROR([ncurses or ncursesw selected, but library not found])] + ) + ]) AC_SUBST([NCURSES_CFLAGS]) AC_SUBST([NCURSES_LIBS])