mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-07 18:02:40 +08:00
check for leptonica version; add info to tesseract.pc about opencl lib if needed
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1035 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
2ad63776e5
commit
e28176c5dd
11
configure.ac
11
configure.ac
@ -347,6 +347,17 @@ else
|
|||||||
AC_MSG_ERROR([leptonica not found])
|
AC_MSG_ERROR([leptonica not found])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([leptonica version >= 1.70])
|
||||||
|
AC_PREPROC_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM([#include <leptonica/allheaders.h>],
|
||||||
|
[#if (LIBLEPT_MINOR_VERSION >= 1) && (LIBLEPT_MINOR_VERSION >= 70)
|
||||||
|
int i = 0;
|
||||||
|
#else
|
||||||
|
#error You need to upgrade your leptonica library!
|
||||||
|
#endif])],
|
||||||
|
[AC_MSG_RESULT(yes)],
|
||||||
|
[AC_MSG_FAILURE([leptonica 1.70 or higher is required])])
|
||||||
|
|
||||||
# Check location of icu headers
|
# Check location of icu headers
|
||||||
have_icu=false
|
have_icu=false
|
||||||
AC_CHECK_HEADERS(unicode/uchar.h, have_icu=true, have_icu=false)
|
AC_CHECK_HEADERS(unicode/uchar.h, have_icu=true, have_icu=false)
|
||||||
|
@ -12,5 +12,5 @@ URL: https://code.google.com/p/tesseract-ocr
|
|||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
# Requires.private: lept
|
# Requires.private: lept
|
||||||
Libs: -L${libdir} -ltesseract
|
Libs: -L${libdir} -ltesseract
|
||||||
Libs.private: -lpthread -llept
|
Libs.private: -lpthread -llept @OPENCL_LIB@
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
Loading…
Reference in New Issue
Block a user