discover: Reimplement native-parser as a Bison parser
[petitboot] / bootstrap
old mode 100644 (file)
new mode 100755 (executable)
index bf4d77f..4653877
--- a/bootstrap
+++ b/bootstrap
@@ -1,5 +1,14 @@
-#!/bin/sh -ex
+#!/bin/sh
 
-aclocal
-autoheader
-autoconf
+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