]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
configure.ac: check for libcurl and libxml2 if build libs3 4448/head
authorKefu Chai <kchai@redhat.com>
Thu, 23 Apr 2015 12:18:20 +0000 (20:18 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 23 Apr 2015 12:32:30 +0000 (20:32 +0800)
Fixes: #11458
Signed-off-by: Kefu Chai <kchai@redhat.com>
configure.ac

index febb58e102bea01e247dd275747cfb1342cdf638..a8986bcb14eaba93cf54ec16373845b7fb156649 100644 (file)
@@ -787,6 +787,12 @@ AC_ARG_WITH([rest-bench],
            [with_rest_bench=no])
 AM_CONDITIONAL(WITH_REST_BENCH, [ test "$with_rest_bench" = "yes" ])
 
+# needs libcurl and libxml2
+if test "x$with_rest_bench" = xyes && test "x$with_system_libs3" = xno; then
+   AC_CHECK_LIB([curl], [curl_easy_init], [], AC_MSG_ERROR([libcurl not found]))
+   AC_CHECK_LIB([xml2], [xmlParseChunk], [], AC_MSG_ERROR([libxml2 not found]))
+fi
+
 # use libaio?
 AC_ARG_WITH([libaio],
             [AS_HELP_STRING([--without-libaio], [disable libaio use by journal])],