diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-06-26 09:42:47 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-06-26 09:46:09 +0200 |
commit | 1235e91b308044ca04f596cdb3a03107b68f4ce2 (patch) | |
tree | a19ce23c7f09736c2ddc936e67ca76ad9e6ea921 | |
parent | 35aed74fdc7b53ac6c2f0648aa864a108d0e0c7e (diff) | |
download | ffmpeg-1235e91b308044ca04f596cdb3a03107b68f4ce2.tar.gz |
Require pthreads for compilation with OpenCL support.
Fixes a part of ticket #2422.
Reviewed-by: James Almer
-rwxr-xr-x | configure | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4185,6 +4185,8 @@ enabled openal && { { for al_libs in "${OPENAL_LIBS}" "-lopenal" "-lO enabled opencl && { check_lib2 OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL || check_lib2 CL/cl.h clEnqueueNDRangeKernel -lOpenCL || die "ERROR: opencl not found"; } && + { enabled_any w32threads os2threads && + die "opencl currently needs --enable-pthreads or --disable-w32threads"; } && { check_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" || check_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" || die "ERROR: opencl must be installed and version must be 1.2 or compatible"; } |