]> git.meshlink.io Git - catta/blobdiff - avahi-compat-libdns_sd/Makefile.am
update TODO, only 3 items on the TODO left
[catta] / avahi-compat-libdns_sd / Makefile.am
index 5a667430807603e1e447bcfb9129a968386ba93f..25c1f6e52b68da3dd441b547cef4d2edb62d6ef5 100644 (file)
@@ -22,13 +22,18 @@ AM_CFLAGS=-I$(top_srcdir)
 # This cool debug trap works on i386/gcc only
 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
 
+if HAVE_DBUS
+if ENABLE_COMPAT_LIBDNS_SD
+
 avahi_compat_libdns_sddir=$(includedir)/avahi-compat-libdns_sd
 
 avahi_compat_libdns_sd_HEADERS = dns_sd.h
 
 lib_LTLIBRARIES = libavahi-compat-libdns_sd.la 
 
+if ENABLE_TESTS
 noinst_PROGRAMS = txt-test
+endif
 
 libavahi_compat_libdns_sd_la_SOURCES = \
        dns_sd.h \
@@ -45,7 +50,7 @@ txt_test_SOURCES = \
        txt-test.c \
        warn.c warn.h
 txt_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
-txt_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
+txt_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la
 
 # You can test the compatibility layer by sticking in mDNSResponder's
 # dns-sd.c source here, naming it "libdns_sd-test.c" and running "make
@@ -57,3 +62,6 @@ libdns_sd-test: libdns_sd-test.c libavahi-compat-libdns_sd.la
        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(PTHREAD_CFLAGS) -o libdns_sd-test libdns_sd-test.o $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la libavahi-compat-libdns_sd.la 
 
 CLEANFILES = libdns_sd-test.o libdns_sd-test
+
+endif
+endif