Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,20 @@ AC_LINK_IFELSE(
OPENCL_FLAGS=
OPENCL_LIBS=
found_opencl=0])

if test "$found_opencl" = 1; then
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#ifdef __APPLE_CC__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
]],
[[return clCreateCommandQueueWithProperties(NULL, NULL, NULL, NULL); ]])],
[AC_DEFINE([HAS_OCL2], [1], [OpenCL library supports version 2.0 or later])],
[])
fi

LIBS=$SAVED_LIBS
CFLAGS=$SAVED_CFLAGS

Expand Down