From 0ccc7afcd8cf77346568ffbf9a8b2e0b3ce2ea0e Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 10 Dec 2009 10:32:57 +0800 Subject: osx: add native zeroconf implementation via Bonjour Avahi and dbus is too heavy for OSX just for the sake of publishing our services via mDNS/Zeroconf. Apple has its own Zeroconf implementation called Bonjour, and this patch adds a module that implements service announcement with that API. All data gathering is copied from module-zeroconf-publish.c, but unfortunately the code there is too specifically made for avahi, so I couldn't factor it out to reuse it. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 11af89b0..6b540e4a 100644 --- a/configure.ac +++ b/configure.ac @@ -423,8 +423,12 @@ if test "x$os_is_darwin" = "x1" ; then AC_MSG_RESULT([ok]) AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [Using clock_gettime() replacement]) + HAVE_BONJOUR=1 fi +AC_SUBST(HAVE_BONJOUR) +AM_CONDITIONAL([HAVE_BONJOUR], [test "x$HAVE_BONJOUR" = x1]) + #### Check for functions #### # ISO -- cgit