mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-07 18:02:40 +08:00
Fix configure.ac unconditionally enabling OpenCL
This commit is contained in:
parent
7b85eeafe2
commit
b3eaf6d748
@ -221,9 +221,14 @@ case "${host_os}" in
|
|||||||
if test $my_cv_framework_OpenCL = yes; then
|
if test $my_cv_framework_OpenCL = yes; then
|
||||||
have_opencl_lib=true
|
have_opencl_lib=true
|
||||||
fi
|
fi
|
||||||
|
if test "$enable_opencl" = "yes"; then
|
||||||
|
if !($have_opencl_lib); then
|
||||||
|
AC_MSG_ERROR(Required OpenCL library not found!)
|
||||||
|
fi
|
||||||
AC_SUBST([AM_CPPFLAGS], [-DUSE_OPENCL])
|
AC_SUBST([AM_CPPFLAGS], [-DUSE_OPENCL])
|
||||||
OPENCL_CPPFLAGS=""
|
OPENCL_CPPFLAGS=""
|
||||||
OPENCL_LDFLAGS="-framework OpenCL"
|
OPENCL_LDFLAGS="-framework OpenCL"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# default
|
# default
|
||||||
|
Loading…
Reference in New Issue
Block a user