new build matrix
[m6w6/ext-http] / travis / brotli.sh
index 1a9f6cd93670fcd08457f73bdae5907e60a1ed7a..322a3c3d7d31cff9cc28c8c903ef15342f6b4369 100755 (executable)
@@ -1,9 +1,11 @@
 #!/bin/bash
 
-git clone https://github.com/google/brotli.git
-cd brotli
-git checkout v1.0.2
-./bootstrap
-./configure --prefix=/home/travis/brotli
-make -j2
-make install
+if test -n "$with_http_libbrotli_dir" && test "$with_http_libbrotli_dir" != "no"; then
+       git clone https://github.com/google/brotli.git /home/travis/brotli.git
+       cd /home/travis/brotli.git
+       git checkout v1.0.2
+       ./bootstrap
+       ./configure --prefix=/home/travis/brotli
+       make -j2
+       make install
+fi