]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: ncurses is optional, don't fail when missing
authorKarel Zak <kzak@redhat.com>
Thu, 26 Mar 2015 10:50:15 +0000 (11:50 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Apr 2015 10:25:50 +0000 (12:25 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index 89629a112421426a4e727d870b89fb23f0027f0b..53bce053c9ca61366096022027093d975770993b 100644 (file)
@@ -727,9 +727,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])