[v1,02/10] configure: Add check for UI build

Message ID 588bf855097caa1d3ea7b2c0b9e74146ddf52921.1531170563.git.geoff@infradead.org
State Superseded
Headers show
Series
  • [v1,01/10] docker: Add libfdt-dev
Related show

Commit Message

Geoff Levand July 9, 2018, 9:21 p.m.
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 --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(