]> git.meshlink.io Git - catta/commitdiff
Built client examples only when DBUS is available
authorLennart Poettering <lennart@poettering.net>
Sun, 21 Aug 2005 01:26:44 +0000 (01:26 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Aug 2005 01:26:44 +0000 (01:26 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@375 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

examples/Makefile.am

index da233b95f8c858429a4987c9647f7281b7d6dee0..fa264564b2a3ae90b92ff2319bf0af1aae01a598 100644 (file)
@@ -21,9 +21,7 @@ AM_CFLAGS=-I$(top_srcdir)
 
 noinst_PROGRAMS = \
        core-publish-service \
-       core-browse-services \
-       client-publish-service \
-       client-browse-services
+       core-browse-services
 
 core_publish_service_SOURCES = core-publish-service.c
 core_publish_service_CFLAGS = $(AM_CFLAGS)
@@ -33,6 +31,12 @@ core_browse_services_SOURCES = core-browse-services.c
 core_browse_services_CFLAGS = $(AM_CFLAGS)
 core_browse_services_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la
 
+
+if HAVE_DBUS
+
+noinst_PROGRAMS += \
+       client-publish-service \
+       client-browse-services
 client_publish_service_SOURCES = client-publish-service.c
 client_publish_service_CFLAGS = $(AM_CFLAGS)
 client_publish_service_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la
@@ -40,3 +44,5 @@ client_publish_service_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ..
 client_browse_services_SOURCES = client-browse-services.c
 client_browse_services_CFLAGS = $(AM_CFLAGS)
 client_browse_services_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la
+
+endif