From af100c36dc67c3c8b251541439225cc7ae758d9c Mon Sep 17 00:00:00 2001 From: riccardom Date: Wed, 17 Feb 2010 14:36:51 +0000 Subject: [PATCH] Don't build the wx frontend if antigrain is not available I don't want to clutter the source code with ifdef :) --- desmume/configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desmume/configure.ac b/desmume/configure.ac index 21624be5e..2b4278605 100644 --- a/desmume/configure.ac +++ b/desmume/configure.ac @@ -238,7 +238,11 @@ if test "x$HAVE_SDL" = "xyes"; then UI_DIR="gtk $UI_DIR" fi if test "x$wxwin" = "xyes"; then - UI_DIR="wx $UI_DIR" + if test "x$HAVE_LIBAGG" = "xyes"; then + UI_DIR="wx $UI_DIR" + else + AC_MSG_WARN([Antigrain library not found, wxWidgets frontend will be disabled]) + fi fi if test "x$HAVE_LIBGLADE" = "xyes"; then