Notfound()
{
echo "Error: $* not found!"
- echo "Please install recent versions of GNU autoconf and GNU automake."
+ echo 'Please install supported versions of GNU autoconf, GNU automake'
+ echo 'and pkg-config: see the INSTALL file for details.'
exit 1
}
[ -z "$GO" ] && [ -n "$CONFIGURE_ARGS" ] && GO=1
# Verify that all tools have been found
+command -v pkg-config >/dev/null || Notfound pkg-config
[ -z "$ACLOCAL" ] && Notfound aclocal
[ -z "$AUTOHEADER" ] && Notfound autoheader
[ -z "$AUTOMAKE" ] && Notfound automake
AM_VERSION=$($AUTOMAKE --version | head -n 1 | sed -e 's/.* //g')
ifs=$IFS; IFS="."; set $AM_VERSION; IFS=$ifs
-AM_MAJOR="$1"; AM_MINOR="$2"; AM_PATCHLEVEL="$3"
+AM_MAJOR="$1"; AM_MINOR="$2"
echo "Detected automake $AM_VERSION ..."
AM_MAKEFILES="src/ipaddr/Makefile.ng src/ngircd/Makefile.ng src/testsuite/Makefile.ng src/tool/Makefile.ng"
SERIAL_TESTS="serial-tests"
else
# automake < 1.13 => no new test harness, nothing to do
+ # shellcheck disable=SC2034
SERIAL_TEST=""
fi