summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-29 23:07:41 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-29 23:07:41 +0000
commit4a18befb17aad2c24d6f616813952bfef7fed4c8 (patch)
tree6ae1a1bc5794605425b7a43fde28df0b437ac45a /configure
parentc46abe48b7af5af64da2ce48d3d2212383e22f3c (diff)
downloadmpv-4a18befb17aad2c24d6f616813952bfef7fed4c8.tar.bz2
mpv-4a18befb17aad2c24d6f616813952bfef7fed4c8.tar.xz
don't use soundcard.h on non-linux if no OSS support
(based on idea & bugreport by Björn Sandell <biorn@dce.chalmers.se>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7968 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 6e98e4800a..3161894ce1 100755
--- a/configure
+++ b/configure
@@ -1845,13 +1845,19 @@ int main(void) { return 0; }
EOF
_soundcard=no
cc_check && _soundcard=yes
+if ! linux && test "$_ossaudio" = no ; then
+ # we don't want touse soundcard.h on non-linux if no OSS support enabled!
+ echores "$_soundcard, but ignored!"
+ _soundcard=no
+else
+ echores "$_soundcard"
+fi
if test "$_soundcard" = yes ; then
_def_soundcard='#define HAVE_SOUNDCARD_H 1'
_inc_soundcard='#include <soundcard.h>'
else
_def_soundcard='#undef HAVE_SOUNDCARD_H'
fi
-echores "$_soundcard"
else
_def_soundcard='#undef HAVE_SOUNDCARD_H'
fi