aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-08-27 20:55:01 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 20:55:01 -0500
commit3737c0541a8fa0afe492cc95453840c90cc7eb77 (patch)
tree569b34d31422d0bb5678172f9dab8c583c1e3778 /configure
parent4617e59389b3b389ec853e98b91e2402cab84818 (diff)
parentfe3b415231ee66f4a3712e5e601a19096403886b (diff)
Merge commit 'linux-user/linux-user-for-upstream' into staging
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index fc664fc0a9..b805f10297 100755
--- a/configure
+++ b/configure
@@ -1474,6 +1474,21 @@ if compile_prog "" "" ; then
splice=yes
fi
+# check if eventfd is supported
+eventfd=no
+cat > $TMPC << EOF
+#include <sys/eventfd.h>
+
+int main(void)
+{
+ int efd = eventfd(0, 0);
+ return 0;
+}
+EOF
+if compile_prog "" "" ; then
+ eventfd=yes
+fi
+
# Check if tools are available to build documentation.
if test "$docs" != "no" ; then
if test -x "`which texi2html 2>/dev/null`" -a \
@@ -1813,6 +1828,9 @@ fi
if test "$splice" = "yes" ; then
echo "CONFIG_SPLICE=y" >> $config_host_mak
fi
+if test "$eventfd" = "yes" ; then
+ echo "CONFIG_EVENTFD=y" >> $config_host_mak
+fi
if test "$inotify" = "yes" ; then
echo "CONFIG_INOTIFY=y" >> $config_host_mak
fi