[vlc-commits] [Git][videolan/vlc][master] jpeg: check version support

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Jun 18 15:58:44 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
3cf4219d by RĂ©mi Denis-Courmont at 2022-06-18T15:41:08+00:00
jpeg: check version support

VLC requires a library version with custom source/destination memory
addresses. Note that we cannot look for symbols as some versions define
them as preprocessor macros aliasing other symbols.

Fixes #27068.

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -2865,8 +2865,19 @@ dnl
 AC_ARG_ENABLE([jpeg],
   AS_HELP_STRING([--enable-jpeg], [JPEG support (default enabled)]))
 AS_IF([test "${enable_jpeg}" != "no"], [
-AC_CHECK_HEADERS([jpeglib.h], [
-  VLC_ADD_PLUGIN([jpeg])
+  AC_CHECK_HEADERS([jpeglib.h], [
+    AC_MSG_CHECKING([for JPEG library source/destination support])
+    AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
+#include <jpeglib.h>
+#if (JPEG_LIB_VERSION < 80) && !defined(MEM_SRCDST_SUPPORTED)
+#error JPEG library too old
+#endif]],[[;]])
+    ],[
+      AC_MSG_RESULT([yes])
+      VLC_ADD_PLUGIN([jpeg])
+    ], [
+      AC_MSG_RESULT([no])
+    ])
   ])
 ])
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3cf4219d610e42c64dfea7e38b2a70fea701f587

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3cf4219d610e42c64dfea7e38b2a70fea701f587
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