From 28f041126a09ccb7ea45f1315a3c81fe38bc3194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 27 Jul 2012 23:54:00 +0100 Subject: [PATCH] scripts: create-uninstalled-setup.sh: check for basic build tools and deps .. before checking out stuff. --- scripts/create-uninstalled-setup.sh | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/scripts/create-uninstalled-setup.sh b/scripts/create-uninstalled-setup.sh index 07224d8b19..c2bc74a119 100755 --- a/scripts/create-uninstalled-setup.sh +++ b/scripts/create-uninstalled-setup.sh @@ -52,6 +52,41 @@ mkdir -p $UNINSTALLED_ROOT/$BRANCH mkdir -p $UNINSTALLED_ROOT/$BRANCH/prefix +echo "" +echo "Checking basic build tools and dependencies are installed..." +echo "" + +if ! pkg-config --version 2>/dev/null >/dev/null; then + DEPS_OK="no" +elif ! pkg-config --exists glib-2.0 orc-0.4 2>/dev/null >/dev/null; then + DEPS_OK="no" +elif ! bison --version 2>/dev/null >/dev/null; then + DEPS_OK="no" +elif ! flex --version 2>/dev/null >/dev/null; then + DEPS_OK="no" +else + DEPS_OK="yes" +fi + +if test "$DEPS_OK" != "yes"; then +echo "===========================================================================================" +echo "" +echo " Some very basic build tools or dependencies are missing." +echo "" +echo " Please visit" +echo "" +echo " http://gstreamer.freedesktop.org/wiki/BuildDependenciesDebianUbuntu" +echo "" +echo " or" +echo "" +echo " http://gstreamer.freedesktop.org/wiki/Fedora" +echo "" +echo " for instructions how to install them." +echo "" +echo "===========================================================================================" +fi + + cd $UNINSTALLED_ROOT/$BRANCH for m in $MODULES