Ticket #3004: patchopencl.diff

File patchopencl.diff, 938 bytes (added by Carl Eugen Hoyos, 13 years ago)
  • configure

    diff --git a/configure b/configure
    index e29493a..7a9ce3c 100755
    a b enabled opencl && { check_lib2 OpenCL/cl.h clEnqueueNDRangeKernel -Wl  
    42874287                               check_lib2 CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
    42884288                               die "ERROR: opencl not found"; } &&
    42894289                             { enabled_any w32threads os2threads &&
    4290                                die "opencl currently needs --enable-pthreads or --disable-w32threads"; } &&
     4290                               die "opencl currently needs --enable-pthreads or --disable-w32threads"; } ||
    42914291                             { check_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
    42924292                               check_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||
    42934293                               die "ERROR: opencl must be installed and version must be 1.2 or compatible"; }