Ticket #3004: 0001-configure-fix-logic-for-threads-in-case-of-OpenCL-is.patch

File 0001-configure-fix-logic-for-threads-in-case-of-OpenCL-is.patch, 1.3 KB (added by Thilo Borgmann, 13 years ago)
  • configure

    From 39e7aeb3cc069f111fffe677b61f5d8e07874fe2 Mon Sep 17 00:00:00 2001
    From: Thilo Borgmann <thilo.borgmann@mail.de>
    Date: Tue, 1 Oct 2013 16:09:24 +0200
    Subject: [PATCH] configure: fix logic for threads in case of OpenCL is
     enabled. Fixes ticket 3004.
    
    Signed-off-by: Thilo Borgmann <thilo.borgmann@mail.de>
    ---
     configure | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/configure b/configure
    index f25f7dc..2732f16 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 &&
     4289                             { disabled_any w32threads os2threads ||
     4290                               enabled pthreads ||
    42904291                               die "opencl currently needs --enable-pthreads or --disable-w32threads"; } &&
    42914292                             { check_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
    42924293                               check_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||