From 64bf389bca461995897712fd7bdbcfe264393e75 Mon Sep 17 00:00:00 2001 From: Maximilian Wilhelm Date: Wed, 5 Aug 2009 10:57:40 +0200 Subject: [PATCH] Xen Inotify support needs sys/inotify.h * configure.in: to activate Xen Inotify checking we need to check for sys/inotify.h availability --- configure.in | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 64244f3aad..a8daef078b 100644 --- a/configure.in +++ b/configure.in @@ -180,7 +180,7 @@ dnl Allow to build without Xen, QEMU/KVM, test or remote driver AC_ARG_WITH([xen], [ --with-xen add XEN support (on)],[],[with_xen=yes]) AC_ARG_WITH([xen-inotify], -[ --with-xen-inotify add XEN inotify support (on)],[],[with_xen_inotify=yes]) +[ --with-xen-inotify add XEN inotify support (on)],[],[with_xen_inotify=check]) AC_ARG_WITH([qemu], [ --with-qemu add QEMU/KVM support (on)],[],[with_qemu=yes]) AC_ARG_WITH([uml], @@ -409,7 +409,16 @@ if test "$with_xen" != "yes"; then with_xen_inotify=no fi if test "$with_xen_inotify" != "no"; then - AC_CHECK_HEADER([linux/inotify.h],[],[with_xen_inotify=no]) + AC_CHECK_HEADER([sys/inotify.h], [ + with_xen_inotify=yes + ], [ + if test "$with_xen_inotify" = "check"; then + with_xen_inotify=no + AC_MSG_NOTICE([Header file is required for Xen Inotify support, disabling it]) + else + AC_MSG_ERROR([Header file is required for Xen Inotify support!]) + fi + 0]) fi if test "$with_xen_inotify" = "yes"; then AC_DEFINE_UNQUOTED([WITH_XEN_INOTIFY], 1,[whether Xen inotify sub-driver is enabled])