fi
])
if test "x$with_avahi" = "xyes" ; then
- AC_DEFINE_UNQUOTED([HAVE_AVAHI], 1,
+ AC_DEFINE_UNQUOTED([WITH_AVAHI], 1,
[whether Avahi is used to broadcast server presence])
fi
fi
#include <stdio.h>
#include <stdlib.h>
-#if HAVE_AVAHI
+#if WITH_AVAHI
# include <avahi-client/client.h>
# include <avahi-client/publish.h>
struct _virNetServerMDNSGroup {
virNetServerMDNSPtr mdns;
-#if HAVE_AVAHI
+#if WITH_AVAHI
AvahiEntryGroup *handle;
#endif
char *name;
};
struct _virNetServerMDNS {
-#if HAVE_AVAHI
+#if WITH_AVAHI
AvahiClient *client;
AvahiPoll *poller;
#endif
virNetServerMDNSGroupPtr group;
};
-#if HAVE_AVAHI
+#if WITH_AVAHI
/* Avahi API requires this struct name in the app :-( */
struct AvahiWatch {
int watch;
VIR_FREE(entry);
}
-#else /* ! HAVE_AVAHI */
+#else /* ! WITH_AVAHI */
static const char *unsupported = N_("avahi not available at build time");
VIR_DEBUG("%s", _(unsupported));
}
-#endif /* ! HAVE_AVAHI */
+#endif /* ! WITH_AVAHI */