diff mbox series

[v2,02/30] configure: Add check for UI build

Message ID c4e805a96a56e4bc1ce266d0977db6de12e78a1b.1533230644.git.geoff@infradead.org
State Accepted
Headers show
Series [v2,01/30] docker: Add libfdt-dev | expand

Commit Message

Geoff Levand Aug. 2, 2018, 5:29 p.m. UTC
Emit configure warning if no UI program is to be built.

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

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(