diff mbox

Detect broken system linux/fiemap.h

Message ID 1290026392-10127-1-git-send-email-jaschut@sandia.gov (mailing list archive)
State New, archived
Headers show

Commit Message

Jim Schutt Nov. 17, 2010, 8:39 p.m. UTC
None
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 000e892..e00cdbf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,9 +162,10 @@  AC_CHECK_HEADER([openssl/md5.h],
 	[AC_MSG_ERROR([Sorry you need openssl dev files (libssl-dev on debian)])])
 PKG_CHECK_MODULES([OPENSSL], [openssl])
 
-AC_CHECK_HEADER([linux/fiemap.h],
+AC_CHECK_MEMBER([struct fiemap_extent.fe_logical],
 	[AC_DEFINE([HAVE_FIEMAP_H], [], [linux/fiemap.h was found, fiemap ioctl will be used])],
-	[AC_MSG_NOTICE([linux/fiemap.h was not found, fiemap ioctl will not be used])])
+	[AC_MSG_NOTICE([linux/fiemap.h was not found or not usable; using local Ceph copy])],
+	[[#include <linux/fiemap.h>]])
 
 AC_CHECK_HEADERS([sys/xattr.h arpa/inet.h netdb.h netinet/in.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h utime.h])