Changeset View
Changeset View
Standalone View
Standalone View
graphics/wayland/files/patch-configure.ac
--- configure.ac.orig 2018-08-24 18:04:36 UTC | --- configure.ac.orig 2020-02-11 23:46:03 UTC | ||||
+++ configure.ac | +++ configure.ac | ||||
@@ -65,6 +65,25 @@ AC_SUBST(GCC_CFLAGS) | @@ -71,6 +71,25 @@ WESTON_SEARCH_LIBS([DL], [dl], [dlsym]) | ||||
AC_CHECK_HEADERS([sys/prctl.h]) | # OpenBSD doesn't have librt, but it has its functions in libc | ||||
AC_CHECK_FUNCS([accept4 mkostemp posix_fallocate prctl]) | WESTON_SEARCH_LIBS([RT], [rt], [clock_gettime]) | ||||
+AC_CHECK_HEADERS([sys/signalfd.h sys/timerfd.h]) | +AC_CHECK_HEADERS([sys/signalfd.h sys/timerfd.h]) | ||||
+ | + | ||||
+# Use epoll on Linux and epoll-shim (kqueue) on BSD | +# Use epoll on Linux and epoll-shim (kqueue) on BSD | ||||
+AC_CHECK_HEADERS([sys/epoll.h]) | +AC_CHECK_HEADERS([sys/epoll.h]) | ||||
+ | + | ||||
+# Credential support on FreeBSD | +# Credential support on FreeBSD | ||||
+AC_CHECK_HEADERS([sys/ucred.h]) | +AC_CHECK_HEADERS([sys/ucred.h]) | ||||
+ | + | ||||
+# dlopen() | +# dlopen() | ||||
+AC_CHECK_LIB([dl], [dlsym], [DL_LIBS=-ldl]) | +AC_CHECK_LIB([dl], [dlsym], [DL_LIBS=-ldl]) | ||||
+AC_SUBST([DL_LIBS]) | +AC_SUBST([DL_LIBS]) | ||||
+ | + | ||||
+# Defines __FreeBSD__ if we're on FreeBSD | +# Defines __FreeBSD__ if we're on FreeBSD | ||||
+AC_CHECK_HEADERS([sys/param.h]) | +AC_CHECK_HEADERS([sys/param.h]) | ||||
+ | + | ||||
+# waitid() and signal.h are needed for the test suite. | +# waitid() and signal.h are needed for the test suite. | ||||
+AC_CHECK_FUNCS([waitid]) | +AC_CHECK_FUNCS([waitid]) | ||||
+AC_CHECK_HEADERS([signal.h]) | +AC_CHECK_HEADERS([signal.h]) | ||||
+ | + | ||||
AC_ARG_ENABLE([libraries], | AC_ARG_ENABLE([libraries], | ||||
[AC_HELP_STRING([--disable-libraries], | [AC_HELP_STRING([--disable-libraries], | ||||
[Disable compilation of wayland libraries])], | [Disable compilation of wayland libraries])], | ||||
@@ -100,16 +119,20 @@ AC_SUBST([ICONDIR]) | @@ -106,16 +125,20 @@ AC_SUBST([ICONDIR]) | ||||
if test "x$enable_libraries" = "xyes"; then | if test "x$enable_libraries" = "xyes"; then | ||||
PKG_CHECK_MODULES(FFI, [libffi]) | PKG_CHECK_MODULES(FFI, [libffi]) | ||||
+dnl convert SFD_CLOEXEC and TFD_CLOEXEC to warning while figuring out how to do this. | +dnl convert SFD_CLOEXEC and TFD_CLOEXEC to warning while figuring out how to do this. | ||||
AC_CHECK_DECL(SFD_CLOEXEC,[], | AC_CHECK_DECL(SFD_CLOEXEC,[], | ||||
- [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile wayland libraries")], | - [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile wayland libraries")], | ||||
+ [AC_MSG_WARN("SFD_CLOEXEC is needed to compile wayland libraries")], | + [AC_MSG_WARN("SFD_CLOEXEC is needed to compile wayland libraries")], | ||||
[[#include <sys/signalfd.h>]]) | [[#include <sys/signalfd.h>]]) | ||||
Show All 14 Lines |