From 47e16dbee3d43a8fac8e2337df442814ec6d036b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 6 Aug 2013 23:25:57 +0200 Subject: configure.ac: add option --enable-eventfd Remove the runtime check for eventfd(), hard-code the feature once it's been selected at compile time. The class WakeFD is splitted into EventFD and EventPipe, using WakeFD as a macro diversion. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index edf29d215..556c50024 100644 --- a/configure.ac +++ b/configure.ac @@ -139,7 +139,8 @@ AC_SEARCH_LIBS([syslog], [bsd socket inet], AC_SEARCH_LIBS([socket], [socket]) AC_SEARCH_LIBS([gethostbyname], [nsl]) -AC_CHECK_FUNCS(pipe2 accept4 eventfd) +AC_CHECK_FUNCS(pipe2 accept4) +MPD_OPTIONAL_FUNC(eventfd, USE_EVENTFD) AC_SEARCH_LIBS([exp], [m],, [AC_MSG_ERROR([exp() not found])]) -- cgit v1.2.3