mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
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
This commit is contained in:
parent
84e2528271
commit
bea15897ed
1 changed files with 27 additions and 0 deletions
27
tools/configure
vendored
27
tools/configure
vendored
|
|
@ -62,6 +62,21 @@ checksoundcard () {
|
||||||
fi # has codecs
|
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 () {
|
simcc () {
|
||||||
|
|
||||||
|
|
@ -72,6 +87,18 @@ simcc () {
|
||||||
|
|
||||||
output="rockboxui" # use this as default output binary name
|
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
|
case $uname in
|
||||||
CYGWIN*)
|
CYGWIN*)
|
||||||
echo "Cygwin host detected"
|
echo "Cygwin host detected"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue