summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLars Marowsky-Bree <lmb@suse.com>2018-08-10 10:19:32 +0200
committerLars Marowsky-Bree <lmb@suse.com>2018-08-14 18:03:46 +0200
commitc2f6a13ddc6468a5de50b5c88ef10ae59c16df56 (patch)
tree779bbcdd7ccddbfd373745e5924a7035ab4b1e18 /configure
parentfee14ab846ef542d9bb9ebf68f11f0ecb8636f5e (diff)
downloadfio-c2f6a13ddc6468a5de50b5c88ef10ae59c16df56.tar.gz
fio-c2f6a13ddc6468a5de50b5c88ef10ae59c16df56.tar.bz2
engines/http: Add support for WebDAV and S3
The http engine allows fio to read/write objects to WebDAV and S3 storage systems via libcurl. Writes are mapped to PUT, reads to GET, and TRIM to DELETE of individual objects within the bucket/path.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure b/configure
index 9bdc7a15..103ea945 100755
--- a/configure
+++ b/configure
@@ -181,6 +181,8 @@ for opt do
;;
--disable-rbd) disable_rbd="yes"
;;
+ --disable-http) disable_http="yes"
+ ;;
--disable-gfapi) disable_gfapi="yes"
;;
--enable-libhdfs) libhdfs="yes"
@@ -1567,6 +1569,35 @@ fi
print_config "IPv6 helpers" "$ipv6"
##########################################
+# check for http
+if test "$http" != "yes" ; then
+ http="no"
+fi
+cat > $TMPC << EOF
+#include <curl/curl.h>
+#include <openssl/hmac.h>
+
+int main(int argc, char **argv)
+{
+ CURL *curl;
+ HMAC_CTX *ctx;
+
+ curl = curl_easy_init();
+ curl_easy_cleanup(curl);
+
+ ctx = HMAC_CTX_new();
+ HMAC_CTX_reset(ctx);
+ HMAC_CTX_free(ctx);
+ return 0;
+}
+EOF
+if test "$disable_http" != "yes" && compile_prog "" "-lcurl -lssl -lcrypto" "curl"; then
+ LIBS="-lcurl -lssl -lcrypto $LIBS"
+ http="yes"
+fi
+print_config "http engine" "$http"
+
+##########################################
# check for rados
if test "$rados" != "yes" ; then
rados="no"
@@ -2346,6 +2377,9 @@ fi
if test "$ipv6" = "yes" ; then
output_sym "CONFIG_IPV6"
fi
+if test "$http" = "yes" ; then
+ output_sym "CONFIG_HTTP"
+fi
if test "$rados" = "yes" ; then
output_sym "CONFIG_RADOS"
fi