[FFmpeg-devel] [PATCH] configure: use pkg-config to check for libopenjpeg

Michael Niedermayer michaelni at gmx.at
Sun Dec 16 16:51:02 CET 2012


On Sun, Dec 16, 2012 at 04:33:03PM +0100, mixi at shadowice.org wrote:
> From: Johannes Nixdorf <mixi at exherbo.org>
> 
> Beginning with version 1.5.1 openjpeg defaults to install its headers to
> /usr/include/openjpeg-${major}.${minor} instead of /usr/include making
> the old test fail. Instead of adding a more complex test checking in
> all possible directories configure uses pkg-config to check for
> openjpeg, which works in both cases.
> ---
>  configure | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure b/configure
> index a50d073..fd4e39d 100755
> --- a/configure
> +++ b/configure
> @@ -3837,7 +3837,7 @@ enabled libnut     && require  libnut libnut.h nut_demuxer_init -lnut
>  enabled libopencore_amrnb  && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb
>  enabled libopencore_amrwb  && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb
>  enabled libopencv  && require_pkg_config opencv opencv/cxcore.h cvCreateImageHeader
> -enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg
> +enabled libopenjpeg && require_pkg_config libopenjpeg openjpeg.h opj_version

this breaks --enable-libopenjpeg on ubuntu

check_pkg_config libopenjpeg openjpeg.h opj_version
ERROR: libopenjpeg not found

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121216/b6abc250/attachment.asc>


More information about the ffmpeg-devel mailing list