mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Fix configure.ac for OS X and -framework
This commit is contained in:
parent
f331a57b8e
commit
71f747f668
20
configure.ac
20
configure.ac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user