From c8590f9d9edc8d2b8540586648fc9a0130da469e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Dec 2013 03:12:54 -0500 Subject: tst-fanotify: check for linux/fanotify.h existence We support older kernels that lack this header, so check for it before we try to use it. Reported-by: Adhemerval Zanella Signed-off-by: Mike Frysinger --- sysdeps/unix/sysv/linux/configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysdeps/unix/sysv/linux/configure.ac') diff --git a/sysdeps/unix/sysv/linux/configure.ac b/sysdeps/unix/sysv/linux/configure.ac index 1be921f65e..6d6053f27e 100644 --- a/sysdeps/unix/sysv/linux/configure.ac +++ b/sysdeps/unix/sysv/linux/configure.ac @@ -105,6 +105,12 @@ else *** compatible kernel version]) fi +# Until we start requiring 2.6.37+ headers, we need to check for the +# availability of linux/fanotify.h for testing purposes. +AC_CHECK_HEADER(linux/fanotify.h, + [DEFINES="$DEFINES -DHAVE_LINUX_FANOTIFY_H=1"], , + [/* No default includes. */]) + # The result of the above test for the use of the FDE code is invalid if # the user overrides the decision about the minimum ABI. if test "$oldest_abi" != default && test "2.2.4" \< "$oldest_abi"; then -- cgit 1.4.1