提交 71f747f6 编写于 作者: J James R. Barlow

Fix configure.ac for OS X and -framework

上级 f331a57b
......@@ -212,15 +212,19 @@ m4_define([MY_CHECK_FRAMEWORK],
)
have_opencl_lib=false
if test $host_os != Darwin; then
case "${host_os}" in
*darwin* | *-macos10*)
echo "checking for OpenCL framework"
MY_CHECK_FRAMEWORK([OpenCL])
if test $my_cv_framework_OpenCL = yes; then
have_opencl_lib=true
fi
;;
*)
# default
AC_CHECK_LIB(OpenCL, clGetPlatformIDs, have_opencl_lib=true, have_opencl_lib=false)
else
echo "checking for OpenCL framework"
MY_CHECK_FRAMEWORK([OpenCL])
if test $my_cv_framework_OpenCL = yes; then
have_opencl_lib=true
fi
fi
;;
esac
if test "$enable_opencl" = "yes"; then
if !($have_opencl); then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册