summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-02-22 12:16:22 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-02-22 12:16:22 +0100
commitf0511e4b2e366f5a2bc99d15dde62e31628261a6 (patch)
tree5a39b685071cc710a3d6a54e03f4216f90eead2b /makefiles
parent60fcdd817e9994dbd957fdd745d331978640c7fe (diff)
downloadwolfbones-f0511e4b2e366f5a2bc99d15dde62e31628261a6.tar.gz
wolfbones-f0511e4b2e366f5a2bc99d15dde62e31628261a6.tar.bz2
removed some bash-isms in guess_env
Diffstat (limited to 'makefiles')
-rwxr-xr-xmakefiles/guess_env12
1 files changed, 6 insertions, 6 deletions
diff --git a/makefiles/guess_env b/makefiles/guess_env
index 47327d5..e871bcc 100755
--- a/makefiles/guess_env
+++ b/makefiles/guess_env
@@ -65,15 +65,15 @@ esac
# what compiler do we have (we can't relly on it's name as it may be a cc link to the binary!)
CC=$2
( $CC --version | grep GCC ) 2>/dev/null 1>/dev/null
-if test $? == 0; then
+if test $? = 0; then
COMPILER='gcc'
else
( $CC -v | grep tcc ) 2>/dev/null 1>/dev/null
- if test $? == 0; then
+ if test $? = 0; then
COMPILER='tcc'
else
( $CC -V 2>&1 | grep l_cproc_p ) >/dev/null
- if test $? == 0; then
+ if test $? = 0; then
COMPILER='icc'
else
COMPILER='unknown'
@@ -83,7 +83,7 @@ fi
# version of gcc (GNU C compiler)
-if test $COMPILER == "gcc"; then
+if test $COMPILER = "gcc"; then
GCC_VERSION=`gcc -dumpversion`
GCC_MAJOR_VERSION=`echo $GCC_VERSION | cut -d . -f 1`
GCC_MINOR_VERSION=`echo $GCC_VERSION | cut -d . -f 2`
@@ -91,7 +91,7 @@ fi
# version of tcc (Tiny C compiler)
-if test $COMPILER == "tcc"; then
+if test $COMPILER = "tcc"; then
TCC_VERSION=`tcc -v | cut -d ' ' -f 3`
TCC_MAJOR_VERSION=`echo $ICC_VERSION | cut -d . -f 1`
TCC_MINOR_VERSION=`echo $ICC_VERSION | cut -d . -f 2`
@@ -99,7 +99,7 @@ fi
# version of icc (Intel C compiler)
-if test $COMPILER == "icc"; then
+if test $COMPILER = "icc"; then
ICC_VERSION=`icc -dumpversion`
ICC_MAJOR_VERSION=`echo $ICC_VERSION | cut -d . -f 1`
ICC_MINOR_VERSION=`echo $ICC_VERSION | cut -d . -f 2`