summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJohannes Nixdorf <mixi@exherbo.org>2012-12-16 16:02:08 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-22 18:55:39 +0100
commite749b5dd9873eb6fb31dde9041c81d5032574de2 (patch)
treec32ad9bdeb33b7be24d53f11826a9832419e938f /configure
parent985aa0be828da073d765a8c1dbb38efad43891ed (diff)
downloadffmpeg-e749b5dd9873eb6fb31dde9041c81d5032574de2.tar.gz
configure: consider using /usr/include/openjpeg-1.5 when searching for openjpeg
Beginning with version 1.5.1 openjpeg defaults to install its headers to /usr/include/openjpeg-${major}.${minor} instead of /usr/include without providing a compatibility symlink making the old test fail. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index da6e51157e..b90ae6ed08 100755
--- a/configure
+++ b/configure
@@ -1406,6 +1406,7 @@ HAVE_LIST="
mprotect
msvcrt
nanosleep
+ openjpeg_1_5_openjpeg_h
PeekNamedPipe
perl
pod2man
@@ -3843,7 +3844,9 @@ 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 && { check_lib openjpeg-1.5/openjpeg.h opj_version -lopenjpeg ||
+ check_lib openjpeg.h opj_version -lopenjpeg ||
+ die "ERROR: libopenjpeg not found"; }
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