From: Geoff Levand Date: Thu, 2 Aug 2018 17:29:33 +0000 (+0000) Subject: configure: Add check for UI build X-Git-Tag: v1.9.0~42 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=41f3b4219b9298d9d09b637772c1731b30ec1199;hp=3250bf173aec0ea6b658d09c75536bf50bb27a0c configure: Add check for UI build Emit configure warning if no UI program is to be built. Signed-off-by: Geoff Levand Signed-off-by: Samuel Mendoza-Jonas --- diff --git a/configure.ac b/configure.ac index f12e48d..d02c85f 100644 --- a/configure.ac +++ b/configure.ac @@ -135,6 +135,13 @@ AM_CONDITIONAL( [WITH_TWIN], [test "x$with_twin_x11" = "xyes" || test "x$with_twin_fbdev" = "xyes"]) +AS_IF( + [test "x$with_twin_x11" != "xyes" && \ + test "x$with_twin_fbdev" != "xyes" && \ + test "x$ax_cv_curses" != "xyes"], + [AC_MSG_WARN([ No user interface programs configured. Consider using --with-ncurses, --with-twin-x11 or --with-twin-fbdev'])] +) + AS_IF( [test "x$with_twin_x11" = "xyes" || test "x$with_twin_fbdev" = "xyes"], [PKG_CHECK_MODULES(