$OpenBSD: patch-libao_configure_incl,v 1.1 2014/10/26 15:23:09 ratchov Exp $
--- libao/configure.incl.orig	Fri Oct 24 12:09:22 2014
+++ libao/configure.incl	Fri Oct 24 12:10:49 2014
@@ -12,6 +12,15 @@ if test x"$enable_oss" != x"no"; then
     esac
 fi
 
+dnl check for sndio
+AC_ARG_ENABLE([sndio],
+    [  --disable-sndio           make a version not using sndio])
+if test x"$enable_sndio" != x"no"; then
+    AC_DEFINE([LIBAO_SNDIO],,[libao sndio support])
+    AC_CHECK_LIB([sndio],[sio_initpar],
+	[LIBAO_LIBS="$LIBAO_LIBS -lsndio"])
+fi
+
 dnl check for solaris
 AC_ARG_ENABLE([solaris-audio],
     [  --disable-solaris-audio make a version not using solaris audio])
