4 dnl DNS Service Discovery (aka Bonjour) stuff for the Common UNIX Printing System (CUPS).
6 dnl http://www.dns-sd.org
7 dnl http://www.multicastdns.org/
8 dnl http://developer.apple.com/networking/bonjour/
14 AC_ARG_ENABLE(dnssd, [ --enable-dnssd turn on DNS Service Discovery support, default=yes])
15 AC_ARG_WITH(dnssd-libs, [ --with-dnssd-libs set directory for DNS Service Discovery library],
16 LDFLAGS="-L$withval $LDFLAGS"
17 DSOFLAGS="-L$withval $DSOFLAGS",)
18 AC_ARG_WITH(dnssd-includes, [ --with-dnssd-includes set directory for DNS Service Discovery includes],
19 CFLAGS="-I$withval $CFLAGS"
20 CXXFLAGS="-I$withval $CXXFLAGS"
21 CPPFLAGS="-I$withval $CPPFLAGS",)
25 if test x$enable_dnssd != xno; then
26 AC_CHECK_HEADER(dns_sd.h, [
30 # Darwin and MacOS X...
31 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
32 AC_DEFINE(HAVE_COREFOUNDATION)
33 AC_DEFINE(HAVE_SYSTEMCONFIGURATION)