diff --git a/component/tesseract/buildout.cfg b/component/tesseract/buildout.cfg index d8a40354bf2685260e184d2faeeefec70066ccca..d585832c150a2f0bc243a263459877167a5486c5 100644 --- a/component/tesseract/buildout.cfg +++ b/component/tesseract/buildout.cfg @@ -1,5 +1,6 @@ [buildout] extends = + ../automake/buildout.cfg ../libtool/buildout.cfg ../leptonica/buildout.cfg @@ -33,12 +34,19 @@ patch-options = patches = ${tesseract-gcc-4.7-build-patch:location}/${tesseract-gcc-4.7-build-patch:filename} configure-command = - ./autogen.sh + aclocal -I ${libtool:location}/share/aclocal -I config + libtoolize -f -c + libtoolize --automake + autoheader -f + automake -c -a -f + autoconf -c -Wno-portability + autoreconf -i ./configure --prefix=${buildout:parts-directory}/${:_buildout_section_name_} --disable-static --datarootdir=${tesseract-share:location} # tesseract has a non-standard way of testing for leptonica, hence the # LIBLEPT_HEADERSDIR entry below: environment = + PATH=${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:%(PATH)s ACLOCAL_ARGS=-I${libtool:location}/share/aclocal LIBLEPT_HEADERSDIR=${leptonica:location}/include CPPFLAGS=-I${leptonica:location}/include