summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure
index 505598fba1..7c41a0b182 100755
--- a/tools/configure
+++ b/tools/configure
@@ -97,7 +97,7 @@ findsdl(){
97simcc () { 97simcc () {
98 98
99 # default tool setup for native building 99 # default tool setup for native building
100 prefixtools "" 100 prefixtools "$CROSS_COMPILE"
101 101
102 simver=sdl 102 simver=sdl
103 winbuild="$crosscompile" 103 winbuild="$crosscompile"
@@ -204,7 +204,10 @@ EOF
204 204
205 $CC -o $tmpdir/conftest-$id $tmpdir/conftest-$id.c 2>/dev/null 205 $CC -o $tmpdir/conftest-$id $tmpdir/conftest-$id.c 2>/dev/null
206 206
207 if test `$tmpdir/conftest-$id 2>/dev/null` -gt "1"; then 207 # when cross compiling, the endianess cannot be detected because the above program doesn't run
208 # on the local machine. assume little endian but print a warning
209 endian=`$tmpdir/conftest-$id 2> /dev/null`
210 if [ "$endian" != "" ] && [ $endian -gt "1" ]; then
208 # big endian 211 # big endian
209 endian="big" 212 endian="big"
210 else 213 else
@@ -212,6 +215,10 @@ EOF
212 endian="little" 215 endian="little"
213 fi 216 fi
214 217
218 if [ "$CROSS_COMPILE" != "" ]; then
219 echo "WARNING: Cross Compiling, cannot detect endianess. Assuming little endian!"
220 fi
221
215 if [ $1 = "sdl" ]; then 222 if [ $1 = "sdl" ]; then
216 echo "Simulator environment deemed $endian endian" 223 echo "Simulator environment deemed $endian endian"
217 elif [ $1 = "checkwps" ]; then 224 elif [ $1 = "checkwps" ]; then
@@ -2841,7 +2848,7 @@ else
2841 fi 2848 fi
2842 2849
2843 case $prefix in 2850 case $prefix in
2844 "") 2851 ""|"$CROSS_COMPILE")
2845 # simulator 2852 # simulator
2846 ;; 2853 ;;
2847 i586-mingw32msvc-) 2854 i586-mingw32msvc-)