mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
improved leptonica detection; thanks to Samuel de fram
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@581 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
b140174e84
commit
e6b682d110
14
configure.ac
14
configure.ac
@ -328,8 +328,14 @@ AC_PATH_LIBTIFF(,
|
||||
AC_MSG_WARN([TIFF support is disabled]) ])
|
||||
|
||||
# Check location of leptonica/liblept headers.
|
||||
AC_MSG_CHECKING(for leptonica)
|
||||
AC_ARG_VAR(LIBLEPT_HEADERSDIR,[Leptonica headers directory])
|
||||
|
||||
have_lept=no
|
||||
for incd in /usr/local/include /usr/include
|
||||
if test "$LIBLEPT_HEADERSDIR" = "" ; then
|
||||
LIBLEPT_HEADERSDIR="/usr/local/include /usr/include"
|
||||
fi
|
||||
for incd in $LIBLEPT_HEADERSDIR
|
||||
do
|
||||
for lept in . leptonica liblept
|
||||
do
|
||||
@ -340,10 +346,12 @@ do
|
||||
done
|
||||
done
|
||||
if test "$have_lept" = yes ; then
|
||||
AC_CHECK_LIB(lept,pixCreate)
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_CHECK_LIB(lept,pixCreate)
|
||||
else
|
||||
AC_MSG_ERROR([leptonica not found])
|
||||
fi
|
||||
|
||||
|
||||
# ----------------------------------------
|
||||
# Final Tasks and Output
|
||||
# ----------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user