]>
Commit | Line | Data |
---|---|---|
f7deaa1a | 1 | dnl |
2 | dnl "$Id$" | |
3 | dnl | |
4 | dnl DNS Service Discovery (aka Bonjour) stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
6 | dnl http://www.dns-sd.org | |
7 | dnl http://www.multicastdns.org/ | |
8 | dnl http://developer.apple.com/networking/bonjour/ | |
9 | dnl | |
10 | dnl Copyright ... | |
11 | dnl | |
12 | dnl | |
13 | ||
09a101d6 | 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], | |
f7deaa1a | 16 | LDFLAGS="-L$withval $LDFLAGS" |
17 | DSOFLAGS="-L$withval $DSOFLAGS",) | |
09a101d6 | 18 | AC_ARG_WITH(dnssd-includes, [ --with-dnssd-includes set directory for DNS Service Discovery includes], |
f7deaa1a | 19 | CFLAGS="-I$withval $CFLAGS" |
20 | CXXFLAGS="-I$withval $CXXFLAGS" | |
21 | CPPFLAGS="-I$withval $CPPFLAGS",) | |
22 | ||
23 | DNSSDLIBS="" | |
24 | ||
25 | if test x$enable_dnssd != xno; then | |
26 | AC_CHECK_HEADER(dns_sd.h, [ | |
27 | AC_DEFINE(HAVE_DNSSD) | |
28 | case "$uname" in | |
29 | Darwin*) | |
30 | # Darwin and MacOS X... | |
31 | DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration" | |
32 | AC_DEFINE(HAVE_COREFOUNDATION) | |
33 | AC_DEFINE(HAVE_SYSTEMCONFIGURATION) | |
34 | ;; | |
35 | *) | |
36 | # All others... | |
37 | DNSSDLIBS="???" | |
38 | ;; | |
39 | esac | |
40 | ]) | |
41 | fi | |
42 | ||
43 | AC_SUBST(DNSSDLIBS) | |
44 | ||
45 | dnl | |
46 | dnl End of "$Id$". | |
47 | dnl |