X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=98542038829ab6df85572aa463723376ee1e60ed;hb=7d9e6001da776dafdbfdbea0a3cb601f9f80d1b0;hp=8db8c53dca8f9aa91cad64202b9d908a5b529bd7;hpb=c2c6f999b78be193cad9a74271877f2bc6891c1f;p=catta diff --git a/configure.ac b/configure.ac index 8db8c53..9854203 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,7 @@ 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_LIBDNS_SD_VERSION_INFO, [1:0:0]) +AC_SUBST(LIBAVAHI_COMPAT_HOWL_VERSION_INFO, [0: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} ***]) @@ -74,7 +75,6 @@ case "$host" in ;; *-linux*) AC_DEFINE([LINUX],[],[ Support for GNU/Linux]) - AC_DEFINE([HAVE_NETLINK],[],[ Support for netlink.h]) avahi_platform=linux ;; *-freebsd* | *-kfreebsd*-gnu) @@ -87,7 +87,46 @@ case "$host" in ;; esac -AM_CONDITIONAL(HAVE_NETLINK, [ test x"$avahi_platform" = xlinux ]) +# +# Check for netlink.h +# +AC_CHECK_HEADER(linux/netlink.h, +HAVE_NETLINK=yes +AC_DEFINE([HAVE_NETLINK],[],[Support for Linux netlink]) +, [], [ +#include +#include +]) + +AM_CONDITIONAL(HAVE_NETLINK, [ test x"$HAVE_NETLINK" = xyes ]) + +# +# Check for struct ip_mreqn +# +AC_MSG_CHECKING(for struct ip_mreqn) +AC_TRY_COMPILE([#include ], [ + struct ip_mreqn mreq; + mreq.imr_address.s_addr = 0; +], [ + # Yes, we have it... + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_STRUCT_IP_MREQN],[],[Support for struct ip_mreqn]) +], [ + # We'll just have to try and use struct ip_mreq + AC_MSG_RESULT(no) + AC_MSG_CHECKING(for struct ip_mreq) + AC_TRY_COMPILE([#include ], [ + struct ip_mreq mreq; + mreq.imr_interface.s_addr = 0; + ], [ + # Yes, we have it... + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_STRUCT_IP_MREQ],[],[Support for struct ip_mreq]) + ], [ + # No multicast support + AC_MSG_RESULT(no) + ]) +]) # # Detecting the linux distribution for specific things like init scripts. @@ -589,6 +628,7 @@ tests/Makefile service-type-database/Makefile avahi-sharp/Makefile avahi-compat-libdns_sd/Makefile +avahi-compat-howl/Makefile ]) AC_OUTPUT @@ -651,4 +691,5 @@ echo " Building libavahi-qt4: ${HAVE_QT4} Building avahi-sharp: ${HAVE_MONO} Building avahi-compat-libdns_sd: ${BUILD_CLIENT} + Building avahi-compat-howl: ${BUILD_CLIENT} "