From 2416f97508cb82e2de84d729228f4de38f6717ea Mon Sep 17 00:00:00 2001 From: AliceLR Date: Mon, 25 Jul 2022 15:04:13 -0600 Subject: [PATCH 1/2] Improve detection of old BSD sound driver to fix OpenBSD builds. --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 36de381..ff1d54b 100644 --- a/configure.ac +++ b/configure.ac @@ -245,9 +245,12 @@ beos*|haiku*) AM_CONDITIONAL([SOUND_BEOS], [true]) ;; *) +dnl Modern OpenBSD has sys/audioio.h but does not support this driver. AS_IF([test "$ac_cv_header_sys_audioio_h" = "yes"], [ - AC_DEFINE([SOUND_BSD], 1, [ ]) - AM_CONDITIONAL([SOUND_BSD], [true]) + AC_CHECK_MEMBER([audio_info_t.play], + [ AC_DEFINE([SOUND_BSD], 1, [ ]) + AM_CONDITIONAL([SOUND_BSD], [true]) + ], [ ], [[#include ]]) ]) ;; esac From ab6e7592a74129ef188f0ab47e6a7766ac2daabc Mon Sep 17 00:00:00 2001 From: AliceLR Date: Mon, 25 Jul 2022 17:22:22 -0600 Subject: [PATCH 2/2] Tweak audio_info_t check for old autoconf versions. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ff1d54b..8ed725d 100644 --- a/configure.ac +++ b/configure.ac @@ -250,7 +250,7 @@ dnl Modern OpenBSD has sys/audioio.h but does not support this driver. AC_CHECK_MEMBER([audio_info_t.play], [ AC_DEFINE([SOUND_BSD], 1, [ ]) AM_CONDITIONAL([SOUND_BSD], [true]) - ], [ ], [[#include ]]) + ], , [[#include ]]) ]) ;; esac