diff options
| -rw-r--r-- | configure.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 90cf02f..4585cd4 100644 --- a/configure.ac +++ b/configure.ac @@ -216,12 +216,17 @@ AS_CASE(["$systems"], [*" oss "*], [ AS_CASE(["$required"], [*" oss "*], AS_IF([test "x$need_ossaudio" = xyes], AC_MSG_WARN([RtAudio may require the ossaudio library])))) - AC_CHECK_HEADER(sys/soundcard.h, + + # linux systems may have soundcard.h but *not* have OSS4 installed, + # we have to actually check if it exports OSS4 symbols + AC_CHECK_DECL(SNDCTL_SYSINFO, [api="$api -D__LINUX_OSS__" need_pthread=yes found="$found OSS"], - AS_CASE(["$required"], [*" oss "*], - AC_MSG_ERROR([sys/soundcard.h not found]))) + AS_CASE(["$required"], [*" oss "*], + AC_MSG_ERROR([sys/soundcard.h not found])) + [], + [#include <sys/soundcard.h>]) ]) AS_CASE(["$systems"], [*" jack "*], [ |
