;;
--disable-rdma) disable_rdma="yes"
;;
+ --disable-rados) disable_rados="yes"
+ ;;
--disable-rbd) disable_rbd="yes"
;;
--disable-rbd-blkin) disable_rbd_blkin="yes"
if test -z "${CC}${cross_prefix}"; then
if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
cc="i686-w64-mingw32-gcc"
- if test -e "../zlib/contrib/vstudio/vc14/x86/ZlibStatReleaseWithoutAsm/zlibstat.lib"; then
- echo "Building with zlib support"
- output_sym "CONFIG_ZLIB"
- echo "LIBS=../zlib/contrib/vstudio/vc14/x86/ZlibStatReleaseWithoutAsm/zlibstat.lib" >> $config_host_mak
- fi
else
cc="x86_64-w64-mingw32-gcc"
- if test -e "../zlib/contrib/vstudio/vc14/x64/ZlibStatReleaseWithoutAsm/zlibstat.lib"; then
- echo "Building with zlib support"
- output_sym "CONFIG_ZLIB"
- echo "LIBS=../zlib/contrib/vstudio/vc14/x64/ZlibStatReleaseWithoutAsm/zlibstat.lib" >> $config_host_mak
- fi
fi
fi
if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
static_assert="yes"
ipv6="yes"
mkdir_two="no"
- echo "BUILD_CFLAGS=$CFLAGS -I../zlib -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
+ echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
;;
esac
fi
print_config "IPv6 helpers" "$ipv6"
+##########################################
+# check for rados
+if test "$rados" != "yes" ; then
+ rados="no"
+fi
+cat > $TMPC << EOF
+#include <rados/librados.h>
+
+int main(int argc, char **argv)
+{
+ rados_t cluster;
+ rados_ioctx_t io_ctx;
+ const char cluster_name[] = "ceph";
+ const char user_name[] = "client.admin";
+ const char pool[] = "rados";
+
+ /* The rados_create2 signature required was only introduced in ceph 0.65 */
+ rados_create2(&cluster, cluster_name, user_name, 0);
+ rados_ioctx_create(cluster, pool, &io_ctx);
+
+ return 0;
+}
+EOF
+if test "$disable_rados" != "yes" && compile_prog "" "-lrados" "rados"; then
+ LIBS="-lrados $LIBS"
+ rados="yes"
+fi
+print_config "Rados engine" "$rados"
+
##########################################
# check for rbd
if test "$rbd" != "yes" ; then
fi
##########################################
-# check for rbd_invaidate_cache()
+# check for rbd_invalidate_cache()
if test "$rbd_inval" != "yes" ; then
rbd_inval="no"
fi
if test "$ipv6" = "yes" ; then
output_sym "CONFIG_IPV6"
fi
+if test "$rados" = "yes" ; then
+ output_sym "CONFIG_RADOS"
+fi
if test "$rbd" = "yes" ; then
output_sym "CONFIG_RBD"
fi
output_sym "CONFIG_DISABLE_OPTIMIZATIONS"
fi
if test "$zlib" = "no" ; then
- echo "Consider installing zlib-dev (zlib-devel), some fio features depend on it."
+ echo "Consider installing zlib-dev (zlib-devel, some fio features depend on it."
+ if test "$build_static" = "yes"; then
+ echo "Note that some distros have separate packages for static libraries."
+ fi
fi
if test "$cuda" = "yes" ; then
output_sym "CONFIG_CUDA"