Skip to content
Snippets Groups Projects
Commit 3cf4219d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf
Browse files

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.
parent 699fb535
No related branches found
No related tags found
1 merge request!2084jpeg: check required support
Pipeline #232612 passed with stage
in 19 minutes and 15 seconds
......@@ -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])
])
])
])
......
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