diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-10-12 13:27:08 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-10-12 13:27:08 +0000 |
commit | c2c6f999b78be193cad9a74271877f2bc6891c1f (patch) | |
tree | 1b583d541cee863bb9238f896f74cc978d3a5393 /avahi-core | |
parent | 904dd7fcb4fe358e8ee6cdc28a1fafdeaf672182 (diff) |
* added support in autoconf for multiple architecture
* only compile netlink support on linux
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@734 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core')
-rw-r--r-- | avahi-core/Makefile.am | 10 | ||||
-rw-r--r-- | avahi-core/iface.h | 3 |
2 files changed, 11 insertions, 2 deletions
diff --git a/avahi-core/Makefile.am b/avahi-core/Makefile.am index 643c2a3..e525c1c 100644 --- a/avahi-core/Makefile.am +++ b/avahi-core/Makefile.am @@ -44,11 +44,16 @@ noinst_PROGRAMS = \ hashmap-test \ querier-test +if HAVE_NETLINK +NETLINK = \ + iface-linux.c iface-linux.h \ + netlink.c netlink.h +endif + libavahi_core_la_SOURCES = \ timeeventq.c timeeventq.h\ iface.c iface.h \ - iface-linux.c iface-linux.h \ - netlink.c netlink.h \ + $(NETLINK) \ server.c server.h \ prioq.c prioq.h \ cache.c cache.h\ @@ -77,6 +82,7 @@ libavahi_core_la_SOURCES = \ multicast-lookup.c multicast-lookup.h \ querier.c querier.h + libavahi_core_la_CFLAGS = $(AM_CFLAGS) libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_CORE_VERSION_INFO) diff --git a/avahi-core/iface.h b/avahi-core/iface.h index d9f9cba..0ad6338 100644 --- a/avahi-core/iface.h +++ b/avahi-core/iface.h @@ -39,7 +39,10 @@ typedef struct AvahiHwInterface AvahiHwInterface; #include "announce.h" #include "browse.h" #include "querier.h" + +#ifdef HAVE_NETLINK #include "iface-linux.h" +#endif #define AVAHI_MAX_MAC_ADDRESS 32 |