diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index 0e960f9304..bac889fa28 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -62,6 +62,21 @@ checksoundcard () { | |||
62 | fi # has codecs | 62 | fi # has codecs |
63 | } | 63 | } |
64 | 64 | ||
65 | # scan the $PATH for the given command | ||
66 | findtool(){ | ||
67 | file="$1" | ||
68 | |||
69 | IFS=":" | ||
70 | for path in $PATH | ||
71 | do | ||
72 | # echo "checks for $file in $path" >&2 | ||
73 | if test -f "$path/$file"; then | ||
74 | echo "$path/$file" | ||
75 | return | ||
76 | fi | ||
77 | done | ||
78 | } | ||
79 | |||
65 | 80 | ||
66 | simcc () { | 81 | simcc () { |
67 | 82 | ||
@@ -72,6 +87,18 @@ simcc () { | |||
72 | 87 | ||
73 | output="rockboxui" # use this as default output binary name | 88 | output="rockboxui" # use this as default output binary name |
74 | 89 | ||
90 | if [ "$simver" = "sdl" ]; then | ||
91 | # generic sdl-config checker | ||
92 | sdl=`findtool sdl-config` | ||
93 | |||
94 | if [ -z "$sdl" ]; then | ||
95 | echo "configure didn't find sdl-config, which indicates that you" | ||
96 | echo "don't have SDL (properly) installed. Please correct and" | ||
97 | echo "re-run configure!" | ||
98 | exit | ||
99 | fi | ||
100 | fi | ||
101 | |||
75 | case $uname in | 102 | case $uname in |
76 | CYGWIN*) | 103 | CYGWIN*) |
77 | echo "Cygwin host detected" | 104 | echo "Cygwin host detected" |