Browse Source

dependencies: check for awk

Peter Korsgaard 17 years ago
parent
commit
0c462a82ec
1 changed files with 12 additions and 0 deletions
  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'