]> git.sesse.net Git - vlc/blobdiff - extras/tools/bootstrap
tools: check if tar supports J option
[vlc] / extras / tools / bootstrap
index 9a185ebd0f5ce76bdf568ddaca0d9839b09e559d..56d1b7819b7e065ad1fdda503536cbc83fdde622 100755 (executable)
@@ -30,6 +30,11 @@ then
     echo "$1 not found"
     NEEDED="$NEEDED .$1"
 else
+    if [ "$1" = "xz" ] && ! tar PcJ /dev/null >/dev/null
+    then
+        echo "tar doesn't support xz (J option)"
+        NEEDED="$NEEDED .tar"
+    fi
     # found, need to check version ?
     [ -z "$2" ] && return # no
     # we only check GNU tools, their version have the form MAJOR.MINOR