]> git.sesse.net Git - ffmpeg/commitdiff
configure: fix check for opencl
authorJun Zhao <mypopydev@gmail.com>
Sat, 2 Jun 2018 03:02:38 +0000 (11:02 +0800)
committerJun Zhao <jun.zhao@intel.com>
Thu, 7 Jun 2018 11:38:58 +0000 (19:38 +0800)
add pkg-config support for opencl check.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
configure

index 625cfef2ffff3e60d372231cde4a3703b36ca1e1..473be31d7f4840b2f4f79b0017d5a4b2646e96c5 100755 (executable)
--- a/configure
+++ b/configure
@@ -6135,7 +6135,8 @@ enabled openal            && { { for al_extralibs in "${OPENAL_LIBS}" "-lopenal"
                                die "ERROR: openal not found"; } &&
                              { test_cpp_condition "AL/al.h" "defined(AL_VERSION_1_1)" ||
                                die "ERROR: openal must be installed and version must be 1.1 or compatible"; }
-enabled opencl            && { check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
+enabled opencl            && { check_pkg_config opencl OpenCL CL/cl.h clEnqueueNDRangeKernel ||
+                               check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
                                check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
                                die "ERROR: opencl not found"; } &&
                              { test_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||