]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-dnssd.m4
Merge changes from 1.4svn-r7067.
[thirdparty/cups.git] / config-scripts / cups-dnssd.m4
CommitLineData
f7deaa1a 1dnl
2dnl "$Id$"
3dnl
4dnl DNS Service Discovery (aka Bonjour) stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl http://www.dns-sd.org
7dnl http://www.multicastdns.org/
8dnl http://developer.apple.com/networking/bonjour/
9dnl
bc44d920 10dnl Copyright 2007 by Apple Inc.
f7deaa1a 11dnl
bc44d920 12dnl These coded instructions, statements, and computer programs are the
13dnl property of Apple Inc. and are protected by Federal copyright
14dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
15dnl which should have been included with this file. If this file is
16dnl file is missing or damaged, see the license at "http://www.cups.org/".
f7deaa1a 17dnl
18
09a101d6 19AC_ARG_ENABLE(dnssd, [ --enable-dnssd turn on DNS Service Discovery support, default=yes])
20AC_ARG_WITH(dnssd-libs, [ --with-dnssd-libs set directory for DNS Service Discovery library],
f7deaa1a 21 LDFLAGS="-L$withval $LDFLAGS"
22 DSOFLAGS="-L$withval $DSOFLAGS",)
09a101d6 23AC_ARG_WITH(dnssd-includes, [ --with-dnssd-includes set directory for DNS Service Discovery includes],
f7deaa1a 24 CFLAGS="-I$withval $CFLAGS"
25 CXXFLAGS="-I$withval $CXXFLAGS"
26 CPPFLAGS="-I$withval $CPPFLAGS",)
27
28DNSSDLIBS=""
29
30if test x$enable_dnssd != xno; then
31 AC_CHECK_HEADER(dns_sd.h, [
f7deaa1a 32 case "$uname" in
33 Darwin*)
34 # Darwin and MacOS X...
35 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
cc0d019f 36 AC_DEFINE(HAVE_DNSSD)
f7deaa1a 37 AC_DEFINE(HAVE_COREFOUNDATION)
38 AC_DEFINE(HAVE_SYSTEMCONFIGURATION)
39 ;;
40 *)
41 # All others...
cc0d019f
MS
42 AC_CHECK_LIB(dns_sd,DNSServiceProcessResult,
43 AC_DEFINE(HAVE_DNSSD)
44 DNSSDLIBS="-ldns_sd")
f7deaa1a 45 ;;
46 esac
47 ])
48fi
49
50AC_SUBST(DNSSDLIBS)
51
52dnl
53dnl End of "$Id$".
54dnl