diff options
author | Brad Smith <brad@comstyle.com> | 2009-02-18 02:09:49 +0000 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2009-02-18 02:09:49 +0000 |
commit | 93e18cdcc4e4a0a16b772f25bb45741fb537492c (patch) | |
tree | faa5978d4f39abe7785484ea56841bd9ea5704d3 /configure.ac | |
parent | 6b602efd6d83a311f0c863c35bada02f1f985554 (diff) | |
download | xine-lib-93e18cdcc4e4a0a16b772f25bb45741fb537492c.tar.gz xine-lib-93e18cdcc4e4a0a16b772f25bb45741fb537492c.tar.bz2 |
Add support for new OpenBSD sound API
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 929375515..b765782ce 100644 --- a/configure.ac +++ b/configure.ac @@ -1564,6 +1564,28 @@ AM_CONDITIONAL([HAVE_JACK], [test "x$have_jack" = "xyes"]) dnl --------------------------------------------- +dnl sndio support +dnl --------------------------------------------- + +AC_ARG_WITH([sndio], + AS_HELP_STRING([--without-sndio], [Build without sndio support])) + +if test "x$with_sndio" != "xno"; then + AC_CHECK_LIB(sndio, sio_open, [SNDIO_LIBS=-lsndio; have_sndio=yes], + [have_sndio=no]) + + if test "x$with_sndio" = "xyes" && test "x$have_sndio" = "xno"; then + AC_MSG_ERROR([sndio support requested, but sndio not found]) + fi +fi + +AM_CONDITIONAL([HAVE_SNDIO], [test "x$have_sndio" = "xyes"]) + +AC_SUBST([SNDIO_CFLAGS]) +AC_SUBST([SNDIO_LIBS]) + + +dnl --------------------------------------------- dnl gnome-vfs support dnl --------------------------------------------- @@ -3171,6 +3193,9 @@ fi if test "x$have_jack" = "xyes"; then echo " - Jack" fi +if test "x$have_sndio" = "xyes"; then + echo " - sndio" +fi echo "---" |