At least on Ubuntu, libgme doesn't seem to have any autoconf package
metadata, so automatic detection fails.
This patch changes configure.ac to check for it the "other" way.
>From 385567908d4e4e74b1f4fd97f9d8ddb847d2d859 Mon Sep 17 00:00:00 2001
From: David Schneider <dnschn...@gmail.com>
Date: Sun, 17 Apr 2011 13:57:34 -0700
Subject: [PATCH] Fixed libgme autoconf detection.

---
 configure.ac |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 94369c7..8c3c6bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -822,12 +822,11 @@ fi
 AM_CONDITIONAL(ENABLE_FLUIDSYNTH, test x$enable_fluidsynth = xyes)
 
 dnl ---------------------------------- libgme ---------------------------------
-MPD_AUTO_PKG(gme, GME, [libgme],
-	[gme decoder plugin], [libgme not found])
-AM_CONDITIONAL(HAVE_GME, test x$enable_gme = xyes)
 if test x$enable_gme = xyes; then
-	AC_DEFINE(HAVE_GME, 1, [Define for gme support])
+	AC_CHECK_LIB(gme, gme_open_file,, AC_MSG_ERROR([libgme not found]))
+	AC_DEFINE(HAVE_GME, 1, [Define to use libgme])
 fi
+AM_CONDITIONAL(HAVE_GME, test x$enable_gme = xyes)
 
 dnl ---------------------------------- libmad ---------------------------------
 MPD_AUTO_PKG(mad, MAD, [mad],
-- 
1.7.1

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to