summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index d0010268332..dca5308f2fa 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -60,6 +60,12 @@ if [ $? -ne 0 ]; then
MISSING="$MISSING pkg-config"
fi
+# Check for tar
+env tar --version > /dev/null 2>&1
+if [ $? -ne 0 ]; then
+ MISSING="$MISSING tar"
+fi
+
## If dependencies are missing, warn the user and abort
if [ "x$MISSING" != "x" ]; then
echo "Aborting."