From 825e4069655065ffd49bcc9ec64b53f1225e8186 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 31 Oct 2024 08:32:23 -0400 Subject: configure: Parameterize the neame of the "sdl config" executable We moved to SDL2 but still had the SDL1 'sdl-config' executable used in one place. Additionally, all comments and the help text referenced the wrong executable name. Change-Id: Ie2efa80d27be5f6391fc84e49e207aa2aac26e72 --- tools/configure | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tools/configure') diff --git a/tools/configure b/tools/configure index 4bdb358957..263a9c6a9a 100755 --- a/tools/configure +++ b/tools/configure @@ -26,7 +26,7 @@ rbdir="/.rockbox" bindir= libdir= sharedir= - +sdl_config=sdl2-config arm_thumb_boot= thread_support="ASSEMBLER_THREADS" sysfont="08-Schumacher-Clean" @@ -159,13 +159,13 @@ findtool(){ fi } -# scan the $PATH for sdl-config - check whether for a (cross-)win32 +# scan the $PATH for ${sdl_config} - check whether for a (cross-)win32 # sdl as requested findsdl(){ - files=sdl2-config + files=${sdl_config} if [ -n "$CROSS_COMPILE" ]; then - # sdl-config might (not) be prefixed for cross compiles so try both. - files="${CROSS_COMPILE}sdl-config:${files}" + # ${sdl_config} might (not) be prefixed for cross compiles so try both. + files="${CROSS_COMPILE}${sdl_config}:${files}" fi winbuild="$1" @@ -191,7 +191,7 @@ findsdl(){ fi fi - # search for the correct sdl-config + # search for the correct ${sdl_config} IFS=":" for path in $paths2check do @@ -421,19 +421,19 @@ simcc () { if [ -n `echo $app_type | grep "sdl"` ]; then if [ -z "$sdl" ]; then - echo "configure didn't find sdl-config, which indicates that you" + echo "configure didn't find ${sdl_config}, which indicates that you" echo "don't have SDL (properly) installed. Please correct and" echo "re-run configure!" exit 2 else echo Using $sdl - # generic sdl-config checker + # generic ${sdl_config} checker sdlccopts=$($sdl --cflags) if $sdl --static-libs > /dev/null 2>&1 ; then sdlldopts=$($sdl --static-libs) else - echo "Your sdl-config does not know about static libs, falling back to shared library" + echo "Your ${sdl_config} does not know about static libs, falling back to shared library" sdlldopts=$($sdl --libs) # if [ "$win32crosscompile" = "yes" ] ; then LDOPTS=`echo $LDOPTS | sed -e s/-static//` @@ -661,8 +661,8 @@ maemocc () { GCCOPTS="$GCCOPTS `pkg-config --cflags sdl`" LDOPTS="$LDOPTS `pkg-config --libs sdl`" else - GCCOPTS="$GCCOPTS `sdl-config --cflags`" - LDOPTS="$LDOPTS `sdl-config --libs`" + GCCOPTS="$GCCOPTS `${sdl_config} --cflags`" + LDOPTS="$LDOPTS `${sdl_config} --libs`" fi # glib and libosso support @@ -737,8 +737,8 @@ pandoracc () { prefixtools "$PNDSDK/bin/arm-angstrom-linux-gnueabi-" # Detect SDL - GCCOPTS="$GCCOPTS `$PNDSDK/bin/sdl-config --cflags`" - LDOPTS="$LDOPTS `$PNDSDK/bin/sdl-config --libs`" + GCCOPTS="$GCCOPTS `$PNDSDK/bin/${sdl_config} --cflags`" + LDOPTS="$LDOPTS `$PNDSDK/bin/${sdl_config} --libs`" # Compiler options GCCOPTS="$GCCOPTS -O2 -fno-strict-aliasing" -- cgit v1.2.3