diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2006-01-09 12:41:07 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2006-01-09 12:41:07 +0000 |
| commit | bea15897ed1720ea6178d06972997d71d28eeb7d (patch) | |
| tree | f0c914ebec3f7443112912f590e1046e731277dc | |
| parent | 84e252827138bd289047050c587bd1f66f3d9307 (diff) | |
| download | rockbox-bea15897ed1720ea6178d06972997d71d28eeb7d.zip rockbox-bea15897ed1720ea6178d06972997d71d28eeb7d.tar.gz rockbox-bea15897ed1720ea6178d06972997d71d28eeb7d.tar.bz2 rockbox-bea15897ed1720ea6178d06972997d71d28eeb7d.tar.xz | |
check for sdl-config before using it, and present a more user-friendly
text if it isn't found
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8314 a1c6a512-1295-4272-9138-f99709370657
| -rwxr-xr-x | tools/configure | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index 0e960f9..bac889f 100755 --- a/tools/configure +++ b/tools/configure @@ -62,6 +62,21 @@ checksoundcard () { fi # has codecs } +# scan the $PATH for the given command +findtool(){ + file="$1" + + IFS=":" + for path in $PATH + do + # echo "checks for $file in $path" >&2 + if test -f "$path/$file"; then + echo "$path/$file" + return + fi + done +} + simcc () { @@ -72,6 +87,18 @@ simcc () { output="rockboxui" # use this as default output binary name + if [ "$simver" = "sdl" ]; then + # generic sdl-config checker + sdl=`findtool sdl-config` + + if [ -z "$sdl" ]; then + 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 + fi + fi + case $uname in CYGWIN*) echo "Cygwin host detected" |