bootstrap: Add dependency checks
authorGeoff Levand <geoff@infradead.org>
Mon, 8 Jan 2018 17:47:04 +0000 (09:47 -0800)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 10 Jan 2018 02:34:54 +0000 (13:34 +1100)
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
bootstrap

index e72dad67c279f3b3e4b174311ae66c67a26fa15d..4653877932dca2cb3c63d976938b1e8f3d950058 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,3 +1,14 @@
 #!/bin/sh
 
+progs="autoconf automake autopoint libtoolize pkg-config"
+
+for p in ${progs}; do
+       if test -z "$(${p} --version 2>/dev/null)"; then
+               echo "Please install ${p}"
+               result=1
+       fi
+done
+
+[ -z ${result} ] || exit 1
+
 exec autoreconf -f -i