summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-06-10 09:07:35 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-06-15 12:42:47 +0200
commit307119e7d948bcdb5918fd762153deda471e695b (patch)
tree1f0be77553546caf51f215dfdb26e6fe9ae55e60 /configure
parent3cec7cc22f95ce31565e8e2c03b06a2f7ae8bc6f (diff)
only enable dsound in case the header file is present
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index ccf8dc7788..222694f34d 100755
--- a/configure
+++ b/configure
@@ -435,6 +435,14 @@ EOF
compile_object
}
+check_include() {
+cat > $TMPC <<EOF
+#include <$1>
+int main(void) { return 0; }
+EOF
+ compile_object
+}
+
write_c_skeleton() {
cat > $TMPC <<EOF
int main(void) { return 0; }
@@ -568,7 +576,11 @@ CYGWIN*)
MINGW32*)
mingw32="yes"
audio_possible_drivers="dsound sdl"
- audio_drv_list="dsound"
+ if check_include dsound.h; then
+ audio_drv_list="dsound"
+ else
+ audio_drv_list=""
+ fi
;;
GNU/kFreeBSD)
bsd="yes"