summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/audio_out.m416
1 files changed, 15 insertions, 1 deletions
diff --git a/m4/audio_out.m4 b/m4/audio_out.m4
index 5041dfbba..e85799e4b 100644
--- a/m4/audio_out.m4
+++ b/m4/audio_out.m4
@@ -151,9 +151,22 @@ AC_DEFUN([XINE_AUDIO_OUT_PLUGINS], [
dnl OSS (Open Sound System)
XINE_ARG_ENABLE([oss], [Enable OSS (Open Sound System) support])
if test x"$enable_oss" != x"no"; then
+
+ case "$host" in
+ *-*-netbsd*|*-*-openbsd*)
+ OSS_LIBS="-lossaudio"
+ ;;
+ *)
+ OSS_LIBS=""
+ ;;
+ esac
+
AC_CHECK_HEADERS([sys/soundcard.h machine/soundcard.h soundcard.h], [break])
AC_CHECK_DECL([SNDCTL_DSP_SETFRAGMENT], [have_oss=yes], [have_oss=no],
- [#ifdef HAVE_SYS_SOUNDCARD_H
+ [#ifdef __NetBSD__
+ #include <sys/ioctl.h>
+ #endif
+ #ifdef HAVE_SYS_SOUNDCARD_H
# include <sys/soundcard.h>
#endif
#ifdef HAVE_MACHINE_SOUNDCARD_H
@@ -167,6 +180,7 @@ AC_DEFUN([XINE_AUDIO_OUT_PLUGINS], [
fi
fi
AM_CONDITIONAL([ENABLE_OSS], [test x"$have_oss" = x"yes"])
+ AC_SUBST(OSS_LIBS)
dnl PulseAudio