Skip to content
Snippets Groups Projects
Commit 3a08825c authored by David's avatar David Committed by David
Browse files

configure.ac: Use pkg-config to detect presence of libgme

Use the existing pkg-config file to detect presence of libgme. This file
is already shipped on all known libgme versions (checked back until
0.6.0, which is from 2015).

This fixes build with recent libgme versions, which added even more
dependencies which were missing in the old check.

Fixes #27262
parent 9946913f
No related branches found
No related tags found
1 merge request!2435gme: Fix detection of recent gme library versions
Pipeline #256403 passed with stages
in 38 minutes and 22 seconds
......@@ -2203,26 +2203,7 @@ AM_CONDITIONAL([HAVE_DVBPSI], [test "${have_dvbpsi}" = "yes"])
dnl
dnl GME demux plugin
dnl
AC_ARG_ENABLE([gme],
AS_HELP_STRING([--enable-gme],
[use Game Music Emu (default auto)]))
AS_IF([test "${enable_gme}" != "no"], [
AC_CHECK_HEADER([gme/gme.h], [
AC_CHECK_LIB([gme], [gme_identify_header], [
VLC_ADD_PLUGIN([gme])
], [
AC_CHECK_LIB([gme], [gme_identify_extension], [
VLC_ADD_LIBS([gme], [-lstdc++ $LIBM])
VLC_ADD_PLUGIN([gme])
],, [-lstdc++ $LIBM])
])
VLC_ADD_LIBS([gme], [-lgme])
], [
AS_IF([test "x${enable_gme}" != "x"], [
AC_MSG_ERROR([GME cannot be found. Please install the development files.])
])
])
])
PKG_ENABLE_MODULES_VLC([GME], [], [libgme], [Game Music Emu support (default auto)], [auto])
dnl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment