Skip to content

Commit

Permalink
autogen: Report missing requirements (#1394)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
stweil authored and zdenop committed Mar 17, 2018
1 parent 023e1b3 commit d50769d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions autogen.sh
Expand Up @@ -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:"
Expand Down

0 comments on commit d50769d

Please sign in to comment.