Browse Source

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.
pull/136/head
Rémi Denis-Courmont 4 years ago
committed by Jean-Baptiste Kempf
parent
commit
3cf4219d61
  1. 15
      configure.ac

15
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])
])
])
])

Loading…
Cancel
Save