1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ad,v 1.1 2001/05/16 02:27:53 fredb Exp $
--- ../src/unix/acinclude.m4.orig Mon Feb 12 15:59:05 2001
+++ ../src/unix/acinclude.m4
@@ -149,10 +149,16 @@
AC_DEFUN(AC_HAVE_OSS,
[AC_CACHE_CHECK([for Open Sound System], ac_cv_oss,
AC_TRY_COMPILE([#include <sys/soundcard.h>],[OPEN_SOUND_SYSTEM;],
- ac_cv_oss="yes", ac_cv_oss="no"))
+ ac_cv_oss="yes",
+ AC_TRY_COMPILE([#include <soundcard.h>],[SOUND_VERSION;],
+ ac_cv_oss="yes", ac_cv_oss="no")))
if $test "$ac_cv_oss" = "yes" -a -e /dev/dsp; then
AC_DEFINE(HAVE_OSS,1)
AC_DEFINE(OSS_DEVICE,"/dev/dsp")
+elif $test "$ac_cv_oss" = "yes" -a -e /dev/audio; then
+ AC_DEFINE(HAVE_OSS,1)
+ AC_DEFINE(OSS_DEVICE,"/dev/audio")
+ AC_CHECK_LIB([ossaudio], [_oss_ioctl])
fi])
AC_DEFUN(AC_C_BYTEORDER,
|