$NetBSD: patch-unix_configure,v 1.4 2023/11/20 10:19:00 nia Exp $ !Linux sometimes has OSS. https://github.com/snes9xgit/snes9x/pull/887 --- unix/configure.orig 2022-03-03 16:41:25.000000000 +0000 +++ unix/configure @@ -7327,21 +7327,7 @@ fi if test "x$enable_sound" = "xyes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sound is supported on this platform" >&5 -printf %s "checking whether sound is supported on this platform... " >&6; } - if test "x$snes9x_cv_linux_os" = "xyes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your OS is not Linux. Build without sound support." >&5 -printf "%s\n" "$as_me: WARNING: Your OS is not Linux. Build without sound support." >&2;} - enable_sound="no" - fi -fi - -if test "x$enable_sound" = "xyes"; then + S9XLIBS="$S9XLIBS $LIBOSSAUDIO" ac_fn_cxx_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = xyes then :