mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
autogen: Report missing requirements (#1394)
* autogen: Report missing autoconf-archive autoconf-archive is required, but users often missed that requirement. The script now detects and reports missing autoconf-archive and removes the incomplete generated configure script. Signed-off-by: Stefan Weil <sw@weilnetz.de> * autogen: Report missing pkg-config pkg-config is required. The script now detects and reports missing pkg-config and removes the incomplete generated configure script. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
023e1b340e
commit
d50769dc01
14
autogen.sh
14
autogen.sh
@ -113,6 +113,20 @@ automake --add-missing --copy --warnings=all || bail_out
|
||||
echo "Running autoconf"
|
||||
autoconf || bail_out
|
||||
|
||||
if grep -q AX_CHECK_COMPILE_FLAG configure; then
|
||||
# The generated configure is invalid because autoconf-archive is unavailable.
|
||||
rm configure
|
||||
echo "Missing autoconf-archive. Check the build requirements."
|
||||
bail_out
|
||||
fi
|
||||
|
||||
if grep -q PKG_CHECK_MODULES configure; then
|
||||
# The generated configure is invalid because pkg-confg is unavailable.
|
||||
rm configure
|
||||
echo "Missing pkg-config. Check the build requirements."
|
||||
bail_out
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "All done."
|
||||
echo "To build the software now, do something like:"
|
||||
|
Loading…
Reference in New Issue
Block a user