X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=a54e02cb21c93cda971c5fc957ed219de41cf601;hb=b671bd2201bf8e0a0af9f8da72ae80c3218d3000;hp=1b3a6f6f807b96a9565d86d0eb8767600a9916a2;hpb=6189e8b44a5d38adb27524842005af3f347fd631;p=catta diff --git a/configure.ac b/configure.ac index 1b3a6f6..a54e02c 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ # USA. AC_PREREQ(2.57) -AC_INIT([avahi],[0.6.19],[avahi (at) lists (dot) freedesktop (dot) org]) +AC_INIT([avahi],[0.6.20],[avahi (at) lists (dot) freedesktop (dot) org]) AC_CONFIG_SRCDIR([avahi-core/server.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign 1.9 -Wall]) @@ -341,7 +341,7 @@ AC_HEADER_SYS_WAIT # Solaris stuff AC_SEARCH_LIBS([inet_ntop],[nsl]) AC_SEARCH_LIBS([recv],[socket]) - AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D__EXTENSIONS__") + AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__") # Checks for library functions. AC_FUNC_MEMCMP @@ -384,6 +384,15 @@ if test "x$have_inotify" = "xyes" ; then AC_DEFINE([HAVE_INOTIFY], 1, [Enable Linux inotify() usage]) fi +have_kqueue=yes +AC_CHECK_FUNCS([kqueue],,have_kqueue=no) + +AM_CONDITIONAL(HAVE_KQUEUE, test "x$have_kqueue" = "xyes") + +if test "x$have_kqueue" = "xyes" ; then + AC_DEFINE([HAVE_KQUEUE], 1, [Enable BSD kqueue() usage]) +fi + # Check for pkg-config manually first, as if its not installed the # PKG_PROG_PKG_CONFIG macro won't be defined. AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)