Commit 287d09bb authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

m4/oln-with-lib.m4: Lookup for multiple AND single libraries while checking Tesseract availability.

parent cc2c4ef3
2011-11-16 Guillaume Lazzara <z@lrde.epita.fr>
* m4/oln-with-lib.m4: Lookup for multiple AND single libraries
while checking Tesseract availability.
2011-11-25 Roland Levillain <roland@lrde.epita.fr>
Update lrde-scmstats.sh.
......
# -*- Autoconf -*-
# Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
# (LRDE)
# Copyright (C) 2009, 2010, 2011 EPITA Research and Development
# Laboratory (LRDE)
#
# This file is part of Olena.
#
......@@ -83,12 +83,16 @@ AC_DEFUN([OLN_WITH_TESSERACT],
TESSERACT_LDFLAGS=''
if test "x$with_tesseract" != xno; then
# Checking for Tesseract 3.x
_OLN_WITH_LIB_SHARED_IMPL([TESSERACT], [tesseract/baseapi.h], [tesseract_api],
# Checking for Tesseract 3.x (single lib)
_OLN_WITH_LIB_SHARED_IMPL([TESSERACT], [tesseract/baseapi.h], [tesseract],
[tesseract], [TESSERACT_3], [])
if test x$oln_have_tesseract != xyes; then
# Tesseract 2.x not found, checking for Tesseract 2.x
# Checking for Tesseract 3.x (multiple lib)
_OLN_WITH_LIB_SHARED_IMPL([TESSERACT], [tesseract/baseapi.h], [tesseract_api],
[tesseract], [TESSERACT_3], [])
if test x$oln_have_tesseract != xyes; then
# Tesseract 3.x not found, checking for Tesseract 2.x
_OLN_WITH_LIB_SHARED_IMPL([TESSERACT], [tesseract/baseapi.h], [tesseract_full],
[tesseract], [TESSERACT_2], [])
TESSERACT_CPPFLAGS="$TESSERACT_2_CPPFLAGS -DHAVE_TESSERACT_2"
......@@ -97,6 +101,10 @@ AC_DEFUN([OLN_WITH_TESSERACT],
TESSERACT_CPPFLAGS="$TESSERACT_3_CPPFLAGS -DHAVE_TESSERACT_3"
TESSERACT_LDFLAGS=$TESSERACT_3_LDFLAGS
fi
else
TESSERACT_CPPFLAGS="$TESSERACT_3_CPPFLAGS -DHAVE_TESSERACT_3"
TESSERACT_LDFLAGS=$TESSERACT_3_LDFLAGS
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment