]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - config-scripts/cups-dnssd.m4
Update to CUPS trunk r6695.
[thirdparty/cups.git] / config-scripts / cups-dnssd.m4
index 001c79f9aa5d979188291e139ca95638358c37da..fd82700488a1ae46cd447349ac1f160cb1594c79 100644 (file)
@@ -29,17 +29,19 @@ DNSSDLIBS=""
 
 if test x$enable_dnssd != xno; then
        AC_CHECK_HEADER(dns_sd.h, [
-               AC_DEFINE(HAVE_DNSSD)
                case "$uname" in
                        Darwin*)
                                # Darwin and MacOS X...
                                DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
+                               AC_DEFINE(HAVE_DNSSD)
                                AC_DEFINE(HAVE_COREFOUNDATION)
                                AC_DEFINE(HAVE_SYSTEMCONFIGURATION)
                                ;;
                        *)
                                # All others...
-                               DNSSDLIBS="???"
+                               AC_CHECK_LIB(dns_sd,DNSServiceProcessResult,
+                                       AC_DEFINE(HAVE_DNSSD)
+                                       DNSSDLIBS="-ldns_sd")
                                ;;
                esac
        ])