summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/configure b/tools/configure
index 4bdb358957..263a9c6a9a 100755
--- a/tools/configure
+++ b/tools/configure
@@ -26,7 +26,7 @@ rbdir="/.rockbox"
26bindir= 26bindir=
27libdir= 27libdir=
28sharedir= 28sharedir=
29 29sdl_config=sdl2-config
30arm_thumb_boot= 30arm_thumb_boot=
31thread_support="ASSEMBLER_THREADS" 31thread_support="ASSEMBLER_THREADS"
32sysfont="08-Schumacher-Clean" 32sysfont="08-Schumacher-Clean"
@@ -159,13 +159,13 @@ findtool(){
159 fi 159 fi
160} 160}
161 161
162# scan the $PATH for sdl-config - check whether for a (cross-)win32 162# scan the $PATH for ${sdl_config} - check whether for a (cross-)win32
163# sdl as requested 163# sdl as requested
164findsdl(){ 164findsdl(){
165 files=sdl2-config 165 files=${sdl_config}
166 if [ -n "$CROSS_COMPILE" ]; then 166 if [ -n "$CROSS_COMPILE" ]; then
167 # sdl-config might (not) be prefixed for cross compiles so try both. 167 # ${sdl_config} might (not) be prefixed for cross compiles so try both.
168 files="${CROSS_COMPILE}sdl-config:${files}" 168 files="${CROSS_COMPILE}${sdl_config}:${files}"
169 fi 169 fi
170 winbuild="$1" 170 winbuild="$1"
171 171
@@ -191,7 +191,7 @@ findsdl(){
191 fi 191 fi
192 fi 192 fi
193 193
194 # search for the correct sdl-config 194 # search for the correct ${sdl_config}
195 IFS=":" 195 IFS=":"
196 for path in $paths2check 196 for path in $paths2check
197 do 197 do
@@ -421,19 +421,19 @@ simcc () {
421 421
422 if [ -n `echo $app_type | grep "sdl"` ]; then 422 if [ -n `echo $app_type | grep "sdl"` ]; then
423 if [ -z "$sdl" ]; then 423 if [ -z "$sdl" ]; then
424 echo "configure didn't find sdl-config, which indicates that you" 424 echo "configure didn't find ${sdl_config}, which indicates that you"
425 echo "don't have SDL (properly) installed. Please correct and" 425 echo "don't have SDL (properly) installed. Please correct and"
426 echo "re-run configure!" 426 echo "re-run configure!"
427 exit 2 427 exit 2
428 else 428 else
429 echo Using $sdl 429 echo Using $sdl
430 430
431 # generic sdl-config checker 431 # generic ${sdl_config} checker
432 sdlccopts=$($sdl --cflags) 432 sdlccopts=$($sdl --cflags)
433 if $sdl --static-libs > /dev/null 2>&1 ; then 433 if $sdl --static-libs > /dev/null 2>&1 ; then
434 sdlldopts=$($sdl --static-libs) 434 sdlldopts=$($sdl --static-libs)
435 else 435 else
436 echo "Your sdl-config does not know about static libs, falling back to shared library" 436 echo "Your ${sdl_config} does not know about static libs, falling back to shared library"
437 sdlldopts=$($sdl --libs) 437 sdlldopts=$($sdl --libs)
438# if [ "$win32crosscompile" = "yes" ] ; then 438# if [ "$win32crosscompile" = "yes" ] ; then
439 LDOPTS=`echo $LDOPTS | sed -e s/-static//` 439 LDOPTS=`echo $LDOPTS | sed -e s/-static//`
@@ -661,8 +661,8 @@ maemocc () {
661 GCCOPTS="$GCCOPTS `pkg-config --cflags sdl`" 661 GCCOPTS="$GCCOPTS `pkg-config --cflags sdl`"
662 LDOPTS="$LDOPTS `pkg-config --libs sdl`" 662 LDOPTS="$LDOPTS `pkg-config --libs sdl`"
663 else 663 else
664 GCCOPTS="$GCCOPTS `sdl-config --cflags`" 664 GCCOPTS="$GCCOPTS `${sdl_config} --cflags`"
665 LDOPTS="$LDOPTS `sdl-config --libs`" 665 LDOPTS="$LDOPTS `${sdl_config} --libs`"
666 fi 666 fi
667 667
668 # glib and libosso support 668 # glib and libosso support
@@ -737,8 +737,8 @@ pandoracc () {
737 prefixtools "$PNDSDK/bin/arm-angstrom-linux-gnueabi-" 737 prefixtools "$PNDSDK/bin/arm-angstrom-linux-gnueabi-"
738 738
739 # Detect SDL 739 # Detect SDL
740 GCCOPTS="$GCCOPTS `$PNDSDK/bin/sdl-config --cflags`" 740 GCCOPTS="$GCCOPTS `$PNDSDK/bin/${sdl_config} --cflags`"
741 LDOPTS="$LDOPTS `$PNDSDK/bin/sdl-config --libs`" 741 LDOPTS="$LDOPTS `$PNDSDK/bin/${sdl_config} --libs`"
742 742
743 # Compiler options 743 # Compiler options
744 GCCOPTS="$GCCOPTS -O2 -fno-strict-aliasing" 744 GCCOPTS="$GCCOPTS -O2 -fno-strict-aliasing"