- ignore eventual errors from which(1)
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 11 May 2007 12:50:15 +0000 (12:50 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 11 May 2007 12:50:15 +0000 (12:50 -0000)
toolchain/dependencies/check-host-sed.sh
toolchain/dependencies/dependencies.sh

index a1ee28003b304fa531259474cd64d15cbb20bff5..71f0eb9e8cba2c13637f3752ff5e9cba309fa2d5 100755 (executable)
@@ -3,7 +3,7 @@ SEDLIST="/usr/bin/sed /bin/sed sed gnused gsed"
 for SED in $SEDLIST
 do
        if ! test -x $SED ; then
-               SED=$(which $SED)
+               SED=$(which $SED 2> /dev/null)
                if ! test -x "$SED" > /dev/null ; then
                        SED=""
                        continue
index f0ac1160e5726092f31ed5fc4454714a5658962c..2996081e33af56af315eff13622316a38247850f 100755 (executable)
@@ -123,7 +123,7 @@ fi
 # check build system 'make'
 #
 #############################################################
-MAKE=$(which make)
+MAKE=$(which make 2> /dev/null)
 if [ -z "$MAKE" ] ; then
        echo "make installed:               FALSE"
        /bin/echo -e "\n\nYou must install 'make' on your build machine\n";
@@ -152,7 +152,7 @@ echo "GNU make version '$MAKE_VERSION':                     Ok"
 #############################################################
 COMPILER=$(which $HOSTCC 2> /dev/null)
 if [ -z "$COMPILER" ] ; then
-       COMPILER=$(which cc)
+       COMPILER=$(which cc 2> /dev/null)
 fi;
 if [ -z "$COMPILER" ] ; then
        echo "C Compiler installed:                 FALSE"
@@ -179,7 +179,7 @@ echo "C compiler version '$COMPILER_VERSION':                       Ok"
 # check for host CXX
 CXXCOMPILER=$(which $HOSTCXX 2> /dev/null)
 if [ -z "$CXXCOMPILER" ] ; then
-       CXXCOMPILER=$(which c++)
+       CXXCOMPILER=$(which c++ 2> /dev/null)
 fi
 if [ -z "$CXXCOMPILER" ] ; then
        echo "C++ Compiler installed:               FALSE"