Ticket #3004: opencl_configure.patch

File opencl_configure.patch, 1.5 KB (added by Thilo Borgmann, 13 years ago)

Reorder the blocks for opencl.

  • configure

    diff --git a/configure b/configure
    index f25f7dc..eebd1de 100755
    a b enabled openal && { { for al_libs in "${OPENAL_LIBS}" "-lopenal" "-lO  
    42864286enabled opencl            && { check_lib2 OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
    42874287                               check_lib2 CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
    42884288                               die "ERROR: opencl not found"; } &&
    4289                              { enabled_any w32threads os2threads &&
    4290                                die "opencl currently needs --enable-pthreads or --disable-w32threads"; } &&
    42914289                             { check_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
    42924290                               check_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||
    4293                                die "ERROR: opencl must be installed and version must be 1.2 or compatible"; }
     4291                               die "ERROR: opencl must be installed and version must be 1.2 or compatible"; } &&
     4292                             { enabled_any w32threads os2threads &&
     4293                               die "opencl currently needs --enable-pthreads or --disable-w32threads"; }
    42944294enabled openssl           && { check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
    42954295                               check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
    42964296                               check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||