From 8032d4dee4b522891bbb5a09d1560a579ca65da2 Mon Sep 17 00:00:00 2001 From: riccardom Date: Wed, 8 Jun 2011 10:03:30 +0000 Subject: [PATCH] configure: better libagg detection user heftig says that he can't find Agg_init() at link time when he uses --enable-hud. Fix AM_CONDITIONAL to check for the proper variable and to set in true only if --enable-hud was set. Relayed by zeromus in a comment in #3250391 --- desmume/configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desmume/configure.ac b/desmume/configure.ac index 820daad6b..42c392c1c 100644 --- a/desmume/configure.ac +++ b/desmume/configure.ac @@ -202,8 +202,7 @@ if test "x$HAVE_ALSA" = "xno"; then fi fi -AM_CONDITIONAL([HAVE_LIBAGG], [test "${HAVE_LIBAGG}" = "yes"]) - +AM_CONDITIONAL([HAVE_LIBAGG], [test "x$libagg" = "xyes" -a "${FOUND_LIBAGG}" = "yes"]) if test "x$libagg" = "xyes" ; then if test "x$FOUND_LIBAGG" = "xyes" ; then AC_SUBST(LIBAGG_CFLAGS)