changeset 2480:cfd5af6eb76c

Check for headers required for syscalls. 2011-09-27 Andrew John Hughes <ahughes@redhat.com> * acinclude.m4: (IT_CHECK_FOR_SYSCALLS): Include checks for required headers: sys/epoll.h and attr/xattr.h.
author Andrew John Hughes <ahughes@redhat.com>
date Tue, 27 Sep 2011 01:47:55 +0100
parents ee3b02974ac6
children b11497e41b7c
files ChangeLog acinclude.m4
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Sep 26 14:10:17 2011 +0200
+++ b/ChangeLog	Tue Sep 27 01:47:55 2011 +0100
@@ -1,3 +1,10 @@
+2011-09-27  Andrew John Hughes  <ahughes@redhat.com>
+
+	* acinclude.m4:
+	(IT_CHECK_FOR_SYSCALLS): Include checks
+	for required headers: sys/epoll.h and
+	attr/xattr.h.
+
 2011-09-26  Xerxes RĂ„nby  <xerxes@zafena.se>
 	    Mark David Dumlao  <madumlao@gmail.com>
 
--- a/acinclude.m4	Mon Sep 26 14:10:17 2011 +0200
+++ b/acinclude.m4	Tue Sep 27 01:47:55 2011 +0100
@@ -2163,6 +2163,8 @@
     dnl Check for syscalls
     AC_CHECK_FUNCS([openat64 fstatat64 fgetxattr fsetxattr fremovexattr flistxattr unlinkat renameat futimesat fdopendir epoll_create epoll_ctl epoll_wait],,
       [AC_MSG_ERROR([Could not find required syscalls; check config.log and use --disable-compile-against-syscalls if necessary.])])
+    AC_CHECK_HEADERS([sys/epoll.h attr/xattr.h],
+      , [AC_MSG_ERROR("Could not find required system headers; install the appropriate files or use --disable-compile-against-syscalls if necessary.")])
   fi
   AM_CONDITIONAL(USE_SYSCALL_COMPILATION, test x"${ENABLE_SYSCALL_COMPILATION}" = "xyes")
   AC_SUBST(ENABLE_SYSCALL_COMPILATION)