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

mixi at shadowice.org mixi at shadowice.org
Sun Dec 16 16:33:03 CET 2012


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
 enabled libopus    && require_pkg_config opus opus_multistream.h opus_multistream_decoder_create
 enabled libpulse && require_pkg_config libpulse-simple pulse/simple.h pa_simple_new
 enabled librtmp    && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
-- 
1.8.0.1



More information about the ffmpeg-devel mailing list