configure.ac: use MPD_ENABLE_AUTO_PKG_LIB for libgme

This commit is contained in:
Max Kellermann 2014-12-22 10:28:15 +01:00
parent 8fab855099
commit 7afe63aa06
3 changed files with 6 additions and 13 deletions

View File

@ -1017,7 +1017,7 @@ libdecoder_a_SOURCES += \
src/decoder/plugins/SndfileDecoderPlugin.hxx src/decoder/plugins/SndfileDecoderPlugin.hxx
endif endif
if HAVE_GME if ENABLE_GME
libdecoder_a_SOURCES += \ libdecoder_a_SOURCES += \
src/decoder/plugins/GmeDecoderPlugin.cxx src/decoder/plugins/GmeDecoderPlugin.hxx src/decoder/plugins/GmeDecoderPlugin.cxx src/decoder/plugins/GmeDecoderPlugin.hxx
endif endif

View File

@ -328,11 +328,6 @@ AC_ARG_ENABLE(fifo,
[disable support for writing audio to a FIFO (default: enable)]),, [disable support for writing audio to a FIFO (default: enable)]),,
enable_fifo=yes) enable_fifo=yes)
AC_ARG_ENABLE(gme,
AS_HELP_STRING([--enable-gme],
[enable Blargg's game music emulator plugin]),,
enable_gme=auto)
AC_ARG_ENABLE(httpd-output, AC_ARG_ENABLE(httpd-output,
AS_HELP_STRING([--enable-httpd-output], AS_HELP_STRING([--enable-httpd-output],
[enables the HTTP server output]),, [enables the HTTP server output]),,
@ -894,12 +889,10 @@ MPD_ENABLE_AUTO_PKG(fluidsynth, FLUIDSYNTH, [fluidsynth >= 1.1],
[fluidsynth MIDI decoder plugin], [fluidsynth not found]) [fluidsynth MIDI decoder plugin], [fluidsynth not found])
dnl ---------------------------------- libgme --------------------------------- dnl ---------------------------------- libgme ---------------------------------
MPD_AUTO_PKG_LIB(gme, GME, [libgme], gme, gme_open_file, [-lgme -lstdc++], [],
[gme decoder plugin], [libgme not found]) MPD_ENABLE_AUTO_PKG_LIB(gme, GME, [libgme],
AM_CONDITIONAL(HAVE_GME, test x$enable_gme = xyes) gme, gme_open_file, [-lgme -lstdc++], [],
if test x$enable_gme = xyes; then [Game Music Emulator decoder plugin], [libgme not found])
AC_DEFINE(HAVE_GME, 1, [Define for gme support])
fi
dnl ---------------------------------- libmad --------------------------------- dnl ---------------------------------- libmad ---------------------------------
MPD_ENABLE_AUTO_PKG_LIB(mad, MAD, [mad], MPD_ENABLE_AUTO_PKG_LIB(mad, MAD, [mad],

View File

@ -104,7 +104,7 @@ const struct DecoderPlugin *const decoder_plugins[] = {
#ifdef ENABLE_FFMPEG #ifdef ENABLE_FFMPEG
&ffmpeg_decoder_plugin, &ffmpeg_decoder_plugin,
#endif #endif
#ifdef HAVE_GME #ifdef ENABLE_GME
&gme_decoder_plugin, &gme_decoder_plugin,
#endif #endif
&pcm_decoder_plugin, &pcm_decoder_plugin,