X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=d327d2ca77304424cac9804f01352fe043f6dee0;hb=31e65735b99dcc7288fe2ede9dc647f53fe8d6b2;hp=fd1d435b4d432f16bde69916ffd6f2fac7253fa6;hpb=a04e0665cb5d3a545ab1dbe2d2b7c150b404735d;p=fio.git diff --git a/configure b/configure index fd1d435b..d327d2ca 100755 --- a/configure +++ b/configure @@ -248,6 +248,8 @@ for opt do ;; --disable-dfs) dfs="no" ;; + --enable-asan) asan="yes" + ;; --help) show_help="yes" ;; @@ -290,9 +292,10 @@ if test "$show_help" = "yes" ; then echo "--enable-libiscsi Enable iscsi support" echo "--enable-libnbd Enable libnbd (NBD engine) support" echo "--disable-libzbc Disable libzbc even if found" - echo "--disable-tcmalloc Disable tcmalloc support" - echo "--dynamic-libengines Lib-based ioengines as dynamic libraries" - echo "--disable-dfs Disable DAOS File System support even if found" + echo "--disable-tcmalloc Disable tcmalloc support" + echo "--dynamic-libengines Lib-based ioengines as dynamic libraries" + echo "--disable-dfs Disable DAOS File System support even if found" + echo "--enable-asan Enable address sanitizer" exit $exit_val fi @@ -656,13 +659,13 @@ cat > $TMPC << EOF int main(int argc, char **argv) { - return fcntl(0, F_FULLSYNC); + return fcntl(0, F_FULLFSYNC); } EOF -if compile_prog "" "" "fcntl(F_FULLSYNC)" ; then +if compile_prog "" "" "fcntl(F_FULLFSYNC)" ; then fcntl_sync="yes" fi -print_config "fcntl(F_FULLSYNC)" "$fcntl_sync" +print_config "fcntl(F_FULLFSYNC)" "$fcntl_sync" ########################################## # linux-aio probe @@ -974,7 +977,7 @@ print_config "rdmacm" "$rdmacm" ########################################## # librpma probe -# The librpma engine requires librpma>=v0.10.0 with rpma_mr_advise(). +# The librpma engines require librpma>=v0.11.0 with rpma_cq_get_wc(). if test "$librpma" != "yes" ; then librpma="no" fi @@ -982,7 +985,7 @@ cat > $TMPC << EOF #include int main(void) { - void *ptr = rpma_mr_advise; + void *ptr = rpma_cq_get_wc; (void) ptr; /* unused */ return 0; } @@ -2098,7 +2101,7 @@ if test "$libhdfs" = "yes" ; then hdfs_conf_error=1 fi if test "$FIO_LIBHDFS_INCLUDE" = "" ; then - echo "configure: FIO_LIBHDFS_INCLUDE should be defined to libhdfs inlude path" + echo "configure: FIO_LIBHDFS_INCLUDE should be defined to libhdfs include path" hdfs_conf_error=1 fi if test "$FIO_LIBHDFS_LIB" = "" ; then @@ -3196,7 +3199,10 @@ fi if test "$fcntl_sync" = "yes" ; then output_sym "CONFIG_FCNTL_SYNC" fi - +if test "$asan" = "yes"; then + CFLAGS="$CFLAGS -fsanitize=address" + LDFLAGS="$LDFLAGS -fsanitize=address" +fi print_config "Lib-based ioengines dynamic" "$dynamic_engines" cat > $TMPC << EOF int main(int argc, char **argv)