浏览代码

dependencies: check for awk

Peter Korsgaard 17 年之前
父节点
当前提交
0c462a82ec
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      toolchain/dependencies/dependencies.sh

+ 12 - 0
toolchain/dependencies/dependencies.sh

@@ -232,6 +232,18 @@ if [ ! -z "$CXXCOMPILER" ] ; then
 	echo "C++ compiler version '$CXXCOMPILER_VERSION':			Ok"
 fi
 
+#############################################################
+#
+# check build system 'awk'
+#
+#############################################################
+if ! which awk > /dev/null ; then
+	echo "awk installed:		    FALSE"
+	/bin/echo -e "\n\nYou must install 'awk' on your build machine\n";
+	exit 1;
+fi;
+echo "awk installed:					Ok"
+
 #############################################################
 #
 # check build system 'bison'