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_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_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])
# sync_file_range
endif
radosacl_SOURCES = radosacl.cc
- radosacl_LDADD = librados.la -lpthread -lm -lcrypto
+ radosacl_LDADD = librados.la -lpthread -lm $(OPENSSL_LIBS)
-rbd_SOURCES = rbd.cc
+rbd_SOURCES = rbd.cc common/fiemap.cc
- rbd_LDADD = librados.la -lpthread -lm -lcrypto
+ rbd_LDADD = librados.la -lpthread -lm $(OPENSSL_LIBS)
bin_PROGRAMS += radosacl rbd
if WITH_RADOSGW