From: Nick Bowler Date: Thu, 2 Jun 2022 01:45:21 +0000 (-0400) Subject: Display a warning if configuring without any UI. X-Git-Url: http://git.draconx.ca/gitweb/rrace.git/commitdiff_plain/e6362f26075bafd5109f144c91ed87be343901b2 Display a warning if configuring without any UI. --- diff --git a/configure.ac b/configure.ac index 755d911..3709434 100644 --- a/configure.ac +++ b/configure.ac @@ -110,3 +110,9 @@ AC_CHECK_PROGS([OPTIPNG], [optipng]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT + +have_ui=false +AM_COND_IF([HAVE_MOTIF], [have_ui=:]) +AS_IF([$have_ui], [], +[AC_MSG_WARN([No user interface is enabled.]) +AC_MSG_WARN([It will not be possible to play the game.])])