[vlc-commits] [Git][videolan/vlc][3.0.x] configure: only use PKG_CHECK_MODULES to check the version of asdcplib
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Sep 17 03:08:22 UTC 2026
Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits:
3d7aa0d0 by Steve Lhomme at 2026-09-17T04:59:14+02:00
configure: only use PKG_CHECK_MODULES to check the version of asdcplib
Ref. #29792
Co-authored-by: Alexandre Janniaux <ajanni at videolabs.io>
(cherry picked from commit 8654d2f27e918be876323b679f941e1dc6421b6e)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
1 changed file:
- configure.ac
Changes:
=====================================
configure.ac
=====================================
@@ -2251,19 +2251,23 @@ AM_CONDITIONAL(HAVE_AVFOUNDATION, [test "${have_avfoundation}" != "no"])
dnl
dnl DCP plugin (using asdcplib)
dnl
-PKG_WITH_MODULES([ASDCP], [asdcplib], [
- have_asdcp="yes"
-
- dnl asdcplib doesn't provide a version define
+ASDCPLIB_FACTORY=0
+PKG_WITH_MODULES([ASDCP], [asdcplib])
+AS_IF([test "${enable_asdcp}" = "yes"],[
+ dnl asdcplib does not provide a version define
dnl check the factory necessary API from the package version
- PKG_WITH_MODULES([ASDCP], [asdcplib >= 2.12.2], [
+ AC_MSG_CHECKING([asdcplib API version])
+ ($PKG_CONFIG --print-errors "asdcplib >= 2.12.2") 2>&1
+ ac_status=$?
+ AS_IF([test $ac_status = 0],[
ASDCPLIB_FACTORY=1
+ AC_MSG_RESULT([2.12.2 API])
],[
- ASDCPLIB_FACTORY=0
+ AC_MSG_RESULT([old API])
])
])
AC_SUBST([ASDCPLIB_FACTORY])
-AM_CONDITIONAL(HAVE_ASDCP, [test "${have_asdcp}" = "yes"])
+AM_CONDITIONAL(HAVE_ASDCP, [test "${enable_asdcp}" = "yes"])
dnl
dnl Demux plugins
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3d7aa0d000312251137a53702d73a5c012f16216
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3d7aa0d000312251137a53702d73a5c012f16216
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list