diff --git a/configure.ac b/configure.ac index b941688f..f3c1153d 100644 --- a/configure.ac +++ b/configure.ac @@ -279,6 +279,7 @@ AC_ARG_WITH(dbus-test-client, [ --with-dbus-test-client = compile dbus test cli AC_MSG_RESULT(>>Including dbus test client) HAS_DBUS_CLIENT=1 AC_DEFINE([HAVE_DBUS_CLIENT], 1, [Needed by the compiler.]) + AC_DEFINE([CONFIG_DACP], 1, [Needed by the compiler.]) PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.30.0],[CFLAGS="${GIO_UNIX_CFLAGS} ${CFLAGS}" LIBS="${GIO_UNIX_LIBS} ${LIBS}"],[AC_MSG_ERROR(dbus client support requires the glib 2.0 library -- libglib2.0-dev suggested!)]) ], ) AM_CONDITIONAL([USE_DBUS_CLIENT], [test "x$HAS_DBUS_CLIENT" = "x1"]) @@ -288,6 +289,7 @@ AC_ARG_WITH(mpris, [ --with-mpris = choose mpris support], [ AC_MSG_RESULT(>>Including mpris support) HAS_MPRIS=1 AC_DEFINE([HAVE_MPRIS], 1, [Needed by the compiler.]) + AC_DEFINE([CONFIG_DACP], 1, [Needed by the compiler.]) PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.30.0],[CFLAGS="${GIO_UNIX_CFLAGS} ${CFLAGS}" LIBS="${GIO_UNIX_LIBS} ${LIBS}"],[AC_MSG_ERROR(dbus messaging support for mpris requires the glib 2.0 library -- libglib2.0-dev suggested!)]) ], ) AM_CONDITIONAL([USE_MPRIS], [test "x$HAS_MPRIS" = "x1"]) diff --git a/mdns_avahi.c b/mdns_avahi.c index a506d491..7ba66f8b 100644 --- a/mdns_avahi.c +++ b/mdns_avahi.c @@ -33,7 +33,9 @@ #include "common.h" #include "mdns.h" #include "rtsp.h" +#ifdef CONFIG_DACP #include "dacp.h" +#endif #include #include