I am getting below errors while building tesseract from source. The problem is with the ./configure and make . Please help
pi@raspberrypi:~/tesseract-ocr $ ./autogen.sh
Running aclocal
Running /usr/bin/libtoolize
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
Running autoheader
Running automake --add-missing --copy
api/Makefile.am: installing 'config/depcomp'
Running autoconf
All done.
To build the software now, do something like:
$ ./configure [--enable-debug] [...other options]
pi@raspberrypi:~/tesseract-ocr $ ls
android autom4te.cache cmake contrib doc java NEWS
tesseract.pc.in unittest
api ccmain CMakeLists.txt CONTRIBUTING.md docker-compose.yml LICENSE opencl testdata viewer
appveyor.yml ccstruct config COPYING Dockerfile lstm README.md testing vs2010
arch ccutil config.log cppan.yml googletest m4 snap tests wordrec
AUTHORS ChangeLog configure cutil INSTALL Makefile.am tessdata textord
pi@raspberrypi:~/tesseract-ocr $ autoreconf -i
pi@raspberrypi:~/tesseract-ocr $ ./configure
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
Using git revision: 4.00.00dev-734-g068d43d3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
./configure: line 4255: syntax error near unexpected token `-mavx,'
./configure: line 4255: `AX_CHECK_COMPILE_FLAG(-mavx, avx=true, avx=false)'
pi@raspberrypi:~/tesseract-ocr $ make
make: *** No targets specified and no makefile found. Stop.