[vlc-devel] [PATCH] extras/tools: build pkg-config only when necessary

Sean McGovern gseanmcg at gmail.com
Sun Feb 15 08:51:18 CET 2015


---
 extras/tools/tools.mak |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index c74a223..2781cd8 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -137,7 +137,11 @@ autoconf: autoconf-$(AUTOCONF_VERSION).tar.gz
 	$(UNPACK)
 	$(MOVE)
 
-.autoconf: autoconf .pkg-config
+ifneq ($(shell pkg-config --version >/dev/null 2>&1 || echo FAIL),)
+DEPS_autoconf += .pkg-config
+endif
+
+.autoconf: autoconf $(DEPS_autoconf)
 	(cd $<; ./configure --prefix=$(PREFIX) && $(MAKE) && $(MAKE) install)
 	touch $@
 
-- 
1.7.9.2




More information about the vlc-devel mailing list