mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
#5663: Autotools fixes: proper kqueue check, macro definitions
This commit is contained in:
parent
b3b3ea95a2
commit
4a634ae026
2 changed files with 6 additions and 4 deletions
|
@ -219,16 +219,16 @@ AM_CONDITIONAL([USE_INOTIFY], [test "x$WANT_INOTIFY" != "xno" -a $HAVE_INOTIFY -
|
|||
|
||||
AC_ARG_WITH([kqueue],
|
||||
[AS_HELP_STRING([--with-kqueue],[Enable kqueue support (default=auto)])],
|
||||
[WITH_KQUEUE=${withval}],
|
||||
[WITH_KQUEUE=auto])
|
||||
[WANT_KQUEUE=${withval}],
|
||||
[WANT_KQUEUE=auto])
|
||||
HAVE_KQUEUE=0
|
||||
AS_IF([test "x$WITH_KQUEUE" != "xno"],
|
||||
AS_IF([test "x$WANT_KQUEUE" != "xno"],
|
||||
[AC_CHECK_HEADER([sys/event.h],
|
||||
[AC_CHECK_FUNC([kqueue],
|
||||
[HAVE_KQUEUE=1])],
|
||||
[AS_IF([test "x$WANT_KQUEUE" = "xyes"],
|
||||
[AC_MSG_ERROR("kqueue not found!")])])])
|
||||
AM_CONDITIONAL([USE_KQUEUE], [test "x$WITH_KQUEUE" != "xno" -a $HAVE_KQUEUE -eq 1])
|
||||
AM_CONDITIONAL([USE_KQUEUE], [test "x$WANT_KQUEUE" != "xno" -a $HAVE_KQUEUE -eq 1])
|
||||
|
||||
|
||||
AC_CHECK_HEADERS([sys/statvfs.h \
|
||||
|
|
|
@ -80,10 +80,12 @@ libtransmission_a_SOURCES = \
|
|||
|
||||
if USE_INOTIFY
|
||||
libtransmission_a_SOURCES += watchdir-inotify.c
|
||||
AM_CPPFLAGS += -DWITH_INOTIFY
|
||||
endif
|
||||
|
||||
if USE_KQUEUE
|
||||
libtransmission_a_SOURCES += watchdir-kqueue.c
|
||||
AM_CPPFLAGS += -DWITH_KQUEUE
|
||||
endif
|
||||
|
||||
if WIN32
|
||||
|
|
Loading…
Reference in a new issue