# This cool debug trap works on i386/gcc only
AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
-avahi_compat_bonjourdir=$(includedir)/avahi-compat-bonjour
+avahi_compat_libdns_sddir=$(includedir)/avahi-compat-libdns_sd
-avahi_compat_bonjour_HEADERS = dns_sd.h
+avahi_compat_libdns_sd_HEADERS = dns_sd.h
-lib_LTLIBRARIES = libavahi-compat-bonjour.la
+lib_LTLIBRARIES = libavahi-compat-libdns_sd.la
noinst_PROGRAMS = txt-test
-libavahi_compat_bonjour_la_SOURCES = \
+libavahi_compat_libdns_sd_la_SOURCES = \
dns_sd.h \
compat.c \
txt.c \
unsupported.c \
warn.c warn.h
-libavahi_compat_bonjour_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
-libavahi_compat_bonjour_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_BONJOUR_VERSION_INFO) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la
+libavahi_compat_libdns_sd_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
+libavahi_compat_libdns_sd_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la
txt_test_SOURCES = \
dns_sd.h \
txt_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
# You can test the compatibility layer by sticking in mDNSResponder's
-# dns-sd.c source here, naming it "bonjour-test.c" and running "make
-# bonjour-test" manually. We do not distribute that file due to
+# dns-sd.c source here, naming it "libdns_sd-test.c" and running "make
+# libdns_sd-test" manually. We do not distribute that file due to
# licensing restrictions.
-bonjour-test: bonjour-test.c libavahi-compat-bonjour.la
- $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(PTHREAD_CFLAGS) -o bonjour-test.o -c bonjour-test.c
- $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(PTHREAD_CFLAGS) -o bonjour-test bonjour-test.o $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la libavahi-compat-bonjour.la
+libdns_sd-test: libdns_sd-test.c libavahi-compat-libdns_sd.la
+ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(PTHREAD_CFLAGS) -o libdns_sd-test.o -c libdns_sd-test.c
+ $(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 = bonjour-test.o bonjour-test
+CLEANFILES = libdns_sd-test.o libdns_sd-test
AC_SUBST(LIBAVAHI_GLIB_VERSION_INFO, [0:1:0])
AC_SUBST(LIBAVAHI_QT3_VERSION_INFO, [0:0:0])
AC_SUBST(LIBAVAHI_QT4_VERSION_INFO, [0:0:0])
-AC_SUBST(LIBAVAHI_COMPAT_BONJOUR_VERSION_INFO, [1:0:0])
+AC_SUBST(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO, [1:0:0])
if type -p stow > /dev/null && test -d /usr/local/stow ; then
AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])