Mercurial > mplayer.hg
comparison configure @ 34188:d7bcbf5f7dc3
Fix compilation for broken libopenjpeg.
Some versions of openjpeg.h only declare opj_decode_with_info() in a
comment.
author | cehoyos |
---|---|
date | Sat, 29 Oct 2011 10:01:32 +0000 |
parents | 3053e7ffd08d |
children | e491bbbddf5d |
comparison
equal
deleted
inserted
replaced
34187:fa92aa696903 | 34188:d7bcbf5f7dc3 |
---|---|
4834 | 4834 |
4835 | 4835 |
4836 echocheck "OpenJPEG (JPEG 2000) support" | 4836 echocheck "OpenJPEG (JPEG 2000) support" |
4837 if test "$libopenjpeg" = auto ; then | 4837 if test "$libopenjpeg" = auto ; then |
4838 libopenjpeg=no | 4838 libopenjpeg=no |
4839 define_statement_check OPJ_STATIC openjpeg.h 'opj_dparameters_t dec_params; opj_set_default_decoder_parameters(&dec_params)' -lopenjpeg && libopenjpeg=yes | 4839 define_statement_check OPJ_STATIC openjpeg.h 'opj_dparameters_t dec_params; opj_set_default_decoder_parameters(&dec_params);opj_decode_with_info(0,0,0)' -lopenjpeg && libopenjpeg=yes |
4840 fi | 4840 fi |
4841 echores "$libopenjpeg" | 4841 echores "$libopenjpeg" |
4842 if test "$libopenjpeg" = yes ; then | 4842 if test "$libopenjpeg" = yes ; then |
4843 def_libopenjpeg='#define CONFIG_LIBOPENJPEG 1' | 4843 def_libopenjpeg='#define CONFIG_LIBOPENJPEG 1' |
4844 extra_ldflags="$extra_ldflags -lopenjpeg" | 4844 extra_ldflags="$extra_ldflags -lopenjpeg" |