[v1,02/30] configure: Add check for UI build
diff mbox series

Message ID fd93126f40a96ff67c57ebda73228bb30d933ff3.1532469861.git.geoff@infradead.org
State Superseded
Headers show
Series
  • [v1,01/30] docker: Add libfdt-dev
Related show

Commit Message

Geoff Levand July 24, 2018, 10:15 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(+)

Patch
diff mbox series

diff --git a/configure.ac b/configure.ac
index ed2ea82..72bdbf2 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(