summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-08-17 13:34:21 -0600
committerJens Axboe <axboe@kernel.dk>2018-08-17 13:34:21 -0600
commitc74cb68a1c13077222471e77f4715e0521cb4ed0 (patch)
tree2bc01f08c0e1bf7b9fc289c94d989b860e70a632 /configure
parentd3913f88471a4634179c86bd684bbbf2893f5d5a (diff)
parenta40e7a5977547cbde62dbf1650cba4778a132f69 (diff)
downloadfio-c74cb68a1c13077222471e77f4715e0521cb4ed0.tar.gz
fio-c74cb68a1c13077222471e77f4715e0521cb4ed0.tar.bz2
Merge branch 'ime-support' of https://github.com/DDNStorage/fio-public into ddn-ime
* 'ime-support' of https://github.com/DDNStorage/fio-public: Add support for DDN's Infinite Memory Engine
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure b/configure
index a03f7fa0..fb8b2433 100755
--- a/configure
+++ b/configure
@@ -202,6 +202,8 @@ for opt do
;;
--disable-native) disable_native="yes"
;;
+ --with-ime=*) ime_path="$optarg"
+ ;;
--help)
show_help="yes"
;;
@@ -233,6 +235,7 @@ if test "$show_help" = "yes" ; then
echo "--disable-optimizations Don't enable compiler optimizations"
echo "--enable-cuda Enable GPUDirect RDMA support"
echo "--disable-native Don't build for native host"
+ echo "--with-ime= Install path for DDN's Infinite Memory Engine"
exit $exit_val
fi
@@ -1963,6 +1966,29 @@ print_config "PMDK dev-dax engine" "$devdax"
print_config "PMDK libpmem engine" "$pmem"
##########################################
+# Check whether we support DDN's IME
+if test "$libime" != "yes" ; then
+ libime="no"
+fi
+cat > $TMPC << EOF
+#include <ime_native.h>
+int main(int argc, char **argv)
+{
+ int rc;
+ ime_native_init();
+ rc = ime_native_finalize();
+ return 0;
+}
+EOF
+if compile_prog "-I${ime_path}/include" "-L${ime_path}/lib -lim_client" "libime"; then
+ libime="yes"
+ CFLAGS="-I${ime_path}/include $CFLAGS"
+ LDFLAGS="-Wl,-rpath ${ime_path}/lib -L${ime_path}/lib $LDFLAGS"
+ LIBS="-lim_client $LIBS"
+fi
+print_config "DDN's Infinite Memory Engine" "$libime"
+
+##########################################
# Check if we have lex/yacc available
yacc="no"
yacc_is_bison="no"
@@ -2455,6 +2481,9 @@ fi
if test "$pmem" = "yes" ; then
output_sym "CONFIG_LIBPMEM"
fi
+if test "$libime" = "yes" ; then
+ output_sym "CONFIG_IME"
+fi
if test "$arith" = "yes" ; then
output_sym "CONFIG_ARITHMETIC"
if test "$yacc_is_bison" = "yes" ; then