* configure.ac: Disable kqueue on Haiku.

This commit is contained in:
Po Lu 2024-06-23 12:52:55 +08:00
parent cb7be6035e
commit 486ea8ef5a

View file

@ -4129,26 +4129,28 @@ case $with_file_notification,$NOTIFY_OBJ in
fi ;; fi ;;
esac esac
dnl kqueue is available on BSD-like systems. AS_IF([test "$opsys" != "haiku"], [
case $with_file_notification,$NOTIFY_OBJ in dnl kqueue is available on BSD-like systems and Haiku, but Haiku's
kqueue,* | yes,) dnl implementation cannot monitor filesystem activity.
EMACS_CHECK_MODULES([KQUEUE], [libkqueue]) case $with_file_notification,$NOTIFY_OBJ in
if test "$HAVE_KQUEUE" = "yes"; then kqueue,* | yes,)
AC_DEFINE([HAVE_KQUEUE], [1], [Define to 1 to use kqueue.]) EMACS_CHECK_MODULES([KQUEUE], [libkqueue])
CPPFLAGS="$CPPFLAGS -I/usr/include/kqueue" if test "$HAVE_KQUEUE" = "yes"; then
NOTIFY_CFLAGS=$KQUEUE_CFLAGS AC_DEFINE([HAVE_KQUEUE], [1], [Define to 1 to use kqueue.])
NOTIFY_LIBS=$KQUEUE_LIBS CPPFLAGS="$CPPFLAGS -I/usr/include/kqueue"
NOTIFY_OBJ=kqueue.o NOTIFY_CFLAGS=$KQUEUE_CFLAGS
NOTIFY_SUMMARY="yes -lkqueue" NOTIFY_LIBS=$KQUEUE_LIBS
else NOTIFY_OBJ=kqueue.o
AC_SEARCH_LIBS([kqueue], []) NOTIFY_SUMMARY="yes -lkqueue"
if test "$ac_cv_search_kqueue" != no; then else
AC_DEFINE([HAVE_KQUEUE], [1], [Define to 1 to use kqueue.]) AC_SEARCH_LIBS([kqueue], [])
NOTIFY_OBJ=kqueue.o if test "$ac_cv_search_kqueue" != no; then
NOTIFY_SUMMARY="yes (kqueue)" AC_DEFINE([HAVE_KQUEUE], [1], [Define to 1 to use kqueue.])
fi NOTIFY_OBJ=kqueue.o
fi ;; NOTIFY_SUMMARY="yes (kqueue)"
esac fi
fi ;;
esac])
dnl g_file_monitor exists since glib 2.18. G_FILE_MONITOR_EVENT_MOVED dnl g_file_monitor exists since glib 2.18. G_FILE_MONITOR_EVENT_MOVED
dnl has been added in glib 2.24. It has been tested under dnl has been added in glib 2.24. It has been tested under