output/sndio: refuse to build with libroarsndio
RoarAudio's sndio emulation has been a source for annoyances. First, their headers turned out to be broken with C++, due to their use of the "new" keyword. Then they used a preprocessor macro to rename "sio_hdl" to something else, effectively disallowing the use of forward declarations. Enough is enough, and I'm removing support for it. RoarAudio users should better use the RoarAudio output plugin.
This commit is contained in:
24
configure.ac
24
configure.ac
@@ -1131,10 +1131,26 @@ MPD_DEFINE_CONDITIONAL(enable_fifo, HAVE_FIFO,
|
||||
[support for writing audio to a FIFO])
|
||||
|
||||
dnl ----------------------------------- SNDIO ----------------------------------
|
||||
MPD_ENABLE_AUTO_HEADER([sndio], [SNDIO], [sndio.h],
|
||||
[-lsndio], [],
|
||||
[sndio output plugin],
|
||||
[libsndio not found])
|
||||
MPD_ARG_ENABLE([sndio], [SNDIO], [sndio output plugin], [], [
|
||||
AC_SUBST([SNDIO_LIBS], [])
|
||||
AC_SUBST([SNDIO_CFLAGS], [])
|
||||
|
||||
found_sndio=no
|
||||
MPD_AUTO([sndio], [SNDIO], [sndio output plugin],
|
||||
[AC_CHECK_HEADER([sndio.h],
|
||||
[AC_PREPROC_IFELSE(
|
||||
[AC_LANG_PROGRAM([
|
||||
#include <sndio.h>
|
||||
#ifdef ROAR_VERSION
|
||||
#error libroarsndio not supported
|
||||
#endif
|
||||
])],
|
||||
[found_sndio=yes SNDIO_LIBS='-lsndio' SNDIO_CFLAGS=''],
|
||||
[AC_MSG_WARN([Found libroarsndio, which is known to be broken; ignoring it.])],
|
||||
)]
|
||||
)]
|
||||
)
|
||||
])
|
||||
|
||||
dnl ----------------------------------- Haiku ---------------------------------
|
||||
MPD_ENABLE_AUTO_HEADER([haiku], [HAIKU], [media/MediaDefs.h],
|
||||
|
Reference in New Issue
Block a user