[vlc-commits] [Git][videolan/vlc][master] mpc: fix configure test

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Wed Oct 15 04:48:51 UTC 2025



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
851e8e21 by Rémi Denis-Courmont at 2025-10-15T06:16:03+02:00
mpc: fix configure test

The presence of the header file is not sufficient. We need to test the
library too, like we do in other similar cases.

This fixes building with cross-compilers and shared include directories
(e.g. on Debian).

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -2565,8 +2565,10 @@ AC_ARG_ENABLE([mpc],
 if test "${enable_mpc}" != "no"
 then
     AC_CHECK_HEADERS([mpc/mpcdec.h], [
+      AC_CHECK_LIB([mpcdec], [mpc_demux_init], [
         VLC_ADD_PLUGIN([mpc])
         VLC_ADD_LIBS([mpc],[-lmpcdec])
+      ],, [$LIBM])
     ])
 fi
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/851e8e217ae157130e8d30b5e1d68f28baf5b4b4

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/851e8e217ae157130e8d30b5e1d68f28baf5b4b4
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list