diff options
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/audio_out.m4 | 17 | ||||
| -rw-r--r-- | m4/summary.m4 | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/m4/audio_out.m4 b/m4/audio_out.m4 index d43aa38e1..4edb4b691 100644 --- a/m4/audio_out.m4 +++ b/m4/audio_out.m4 @@ -227,4 +227,21 @@ AC_DEFUN([XINE_AUDIO_OUT_PLUGINS], [ fi fi AM_CONDITIONAL([ENABLE_SUNAUDIO], [test x"$have_sunaudio" = x"yes"]) + + + dnl sndio support + AC_ARG_ENABLE([sndio], + [AS_HELP_STRING([--without-sndio], [Build without sndio support])], + [test x"$enableval" != x"no" && enable_sndio="yes"], + [test $default_enable_sndio = disable && enable_sndio="no"]) + if test "x$enable_sndio" != "xno"; then + AC_CHECK_LIB([sndio], [sio_open], [SNDIO_LIBS=-lsndio; have_sndio=yes], + [have_sndio=no]) + if test "x$enable_sndio" = "xyes" && test "x$have_sndio" = "xno"; then + AC_MSG_ERROR([sndio support requested, but sndio not found]) + fi + fi + AM_CONDITIONAL([ENABLE_SNDIO], [test "x$have_sndio" = "xyes"]) + AC_SUBST([SNDIO_CFLAGS]) + AC_SUBST([SNDIO_LIBS]) ])dnl XINE_AUDIO_OUT_PLUGINS diff --git a/m4/summary.m4 b/m4/summary.m4 index 94374017a..27ca0f645 100644 --- a/m4/summary.m4 +++ b/m4/summary.m4 @@ -274,6 +274,7 @@ AC_DEFUN([XINE_LIB_SUMMARY], [ test x"$have_oss" = x"yes" && echo " - oss (Open Sound System)" test x"$have_pulseaudio" = x"yes" && echo " - pulseaudio (PulseAudio sound server)" test x"$have_sunaudio" = x"yes" && echo " - sun (Sun audio interface)" + test "x$have_sndio" = "xyes" && echo " - sndio" echo "---" |
