summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-07-15 21:12:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-07-15 21:12:18 +0000
commit741a7158e27bcd3d25129247359564d3995419ca (patch)
tree08093f18a213d1e7f17d107739677a670e5fe371 /tools
parent51700bf75e523e5b4da020953df3ad9056b42b6f (diff)
check for/use sys/soundcard.h instead (since it works for cygwin too)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7162 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure20
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/configure b/tools/configure
index a92060a4e2..74364b3e22 100755
--- a/tools/configure
+++ b/tools/configure
@@ -52,6 +52,16 @@ crosswincc () {
endian="little" # windows is little endian
}
+checksoundcard () {
+ if test -n "$codecs"; then
+ if test -f "/usr/include/sys/soundcard.h"; then
+ # We have a header file so we can build the sound code
+ use_simsound="#define ROCKBOX_HAS_SIMSOUND 1"
+ fi # header file present
+ fi # has codecs
+}
+
+
simcc () {
# default tool setup for native building
@@ -73,6 +83,7 @@ simcc () {
# x11 version
GCCOPTS="$GCCOPTS"
LDOPTS='-L/usr/X11R6/lib -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11 -lpthread'
+ checksoundcard
fi
output="rockboxui.exe" # use this as output binary name
;;
@@ -82,14 +93,9 @@ simcc () {
GCCOPTS="$GCCOPTS"
LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread'
if [ "$simver" = "win32" ]; then
- crosswincc # setup cross-compiler
+ crosswincc # setup cross-compiler
else
- if test -n "$codecs"; then
- if test -f "/usr/include/linux/soundcard.h"; then
- # We have a header file so we can build the sound code
- use_simsound="#define ROCKBOX_HAS_SIMSOUND 1"
- fi # header file present
- fi # has codecs
+ checksoundcard
fi # not a cross-compiler
;;