[sheepdog] [PATCH v1 1/3] sheepfs: add check for libcurl in configure.ac
Robin Dong
robin.k.dong at gmail.com
Fri Jan 24 06:23:09 CET 2014
From: Robin Dong <sanbai at taobao.com>
Check header and library for libcurl in configure.ac
Signed-off-by: Robin Dong <sanbai at taobao.com>
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 0bbc697..e30d32e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -333,6 +333,10 @@ if test "x${enable_sheepfs}" = xyes; then
AC_CHECK_HEADERS([fuse.h],,
AC_MSG_ERROR(fuse.h header missing),
[#define _FILE_OFFSET_BITS 64])
+ AC_CHECK_LIB([curl], [curl_easy_init],,
+ AC_MSG_ERROR(libcurl not found))
+ AC_CHECK_HEADERS([curl/curl.h],,
+ AC_MSG_ERROR(curl.h header missing))
AC_DEFINE_UNQUOTED([HAVE_SHEEPFS], 1, [have sheepfs])
PACKAGE_FEATURES="$PACKAGE_FEATURES sheepfs"
PKG_CHECK_EXISTS(fuse >= 2.8.0,
--
1.7.12.4
More information about the sheepdog
mailing list