From 1e3708a9874fcdb4b2db701ff08716dba9329ff5 Mon Sep 17 00:00:00 2001 From: bsdcode <155195419+bsdcode@users.noreply.github.com> Date: Sun, 31 Dec 2023 12:26:53 +0100 Subject: [PATCH] Limit OSS to FreeBSD build --- configure.ac | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index d3fb41e0..5020225c 100644 --- a/configure.ac +++ b/configure.ac @@ -231,13 +231,17 @@ AC_ARG_ENABLE([input_oss], ) AS_IF([test "x$enable_input_oss" != "xno"], [ - AC_CHECK_HEADERS(sys/soundcard.h, have_oss=yes, have_oss=no) - if [[ $have_oss = "yes" ]] ; then - CPPFLAGS="$CPPFLAGS -DOSS -D__BSD_VISIBLE" - fi + have_oss=no - if [[ $have_oss = "no" ]] ; then - AC_MSG_NOTICE([WARNING: No oss dev files found building without oss support]) + if [[ $build_freebsd = "yes" ]] ; then + AC_CHECK_HEADERS(sys/soundcard.h, have_oss=yes, have_oss=no) + if [[ $have_oss = "yes" ]] ; then + CPPFLAGS="$CPPFLAGS -DOSS -D__BSD_VISIBLE" + fi + + if [[ $have_oss = "no" ]] ; then + AC_MSG_NOTICE([WARNING: No oss dev files found building without oss support]) + fi fi], [have_oss=no] )