X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=c00a3a46e9adac827649df5d04d1ea59871c7660;hp=87d659cf6c70cfecbf94e0bbc33e909e448fbaaa;hb=18fdb640bccc3094d5ff7241d798f8a4870cb16b;hpb=c55d728b2230789e744bc44115be27c3db94fd7e diff --git a/configure b/configure index 87d659cf..c00a3a46 100755 --- a/configure +++ b/configure @@ -148,7 +148,7 @@ for opt do ;; --extra-cflags=*) CFLAGS="$CFLAGS $optarg" ;; - --build-32bit-win=*) build_32bit_win="$optarg" + --build-32bit-win) build_32bit_win="yes" ;; --enable-gfio) gfio="yes" @@ -167,7 +167,7 @@ if test "$show_help" = "yes" ; then echo "--cpu= Specify target CPU if auto-detect fails" echo "--cc= Specify compiler to use" echo "--extra-cflags= Specify extra CFLAGS to pass to compiler" - echo "--build-32bit-win= Specify yes for a 32-bit build on Windows" + echo "--build-32bit-win Enable 32-bit build on Windows" echo "--enable-gfio Enable building of gtk gfio" exit $exit_val fi @@ -415,9 +415,6 @@ EOF if compile_prog "" "-lz" "zlib" ; then zlib=yes LIBS="-lz $LIBS" -else - feature_not_found "zlib" "zlib development files" - zlib=no fi echo "zlib $zlib" @@ -812,15 +809,18 @@ echo "GUASI $guasi" # fusion-aw probe fusion_aw="no" cat > $TMPC << EOF -#include +#include int main(int argc, char **argv) { - struct vsl_iovec iov; - return vsl_vectored_write(0, &iov, 0, O_ATOMIC); + nvm_version_t ver_info; + nvm_handle_t handle; + + handle = nvm_get_handle(0, &ver_info); + return nvm_atomic_write(handle, 0, 0, 0); } EOF -if compile_prog "" "-L/usr/lib/fio -lnvm-primitives" "fusion-aw"; then - LIBS="-L/usr/lib/fio -lnvm-primitives $LIBS" +if compile_prog "" "-L/usr/lib/fio -L/usr/lib/nvm -lnvm-primitives -lvsl -ldl" "fusion-aw"; then + LIBS="-L/usr/lib/fio -L/usr/lib/nvm -lnvm-primitives -lvsl -ldl $LIBS" fusion_aw="yes" fi echo "Fusion-io atomic engine $fusion_aw" @@ -1069,6 +1069,23 @@ if compile_prog "" "" "RLIMIT_MEMLOCK"; then fi echo "RLIMIT_MEMLOCK $rlimit_memlock" +########################################## +# Check whether we have pwritev/preadv +pwritev="no" +cat > $TMPC << EOF +#include +#include +int main(int argc, char **argv) +{ + return pwritev(0, NULL, 1, 0) + preadv(0, NULL, 1, 0); +} +EOF +if compile_prog "" "" "pwritev"; then + pwritev="yes" +fi +echo "pwritev/preadv $pwritev" + + ############################################################################# if test "$wordsize" = "64" ; then @@ -1083,6 +1100,9 @@ if test "$bigendian" = "yes" ; then else output_sym "CONFIG_LITTLE_ENDIAN" fi +if test "$zlib" = "yes" ; then + output_sym "CONFIG_ZLIB" +fi if test "$libaio" = "yes" ; then output_sym "CONFIG_LIBAIO" fi @@ -1107,7 +1127,7 @@ fi if test "$sfaa" = "yes" ; then output_sym "CONFIG_SFAA" fi -if test "$libverbs" = "yes" -a "rdmacm" = "yes" ; then +if test "$libverbs" = "yes" -a "$rdmacm" = "yes" ; then output_sym "CONFIG_RDMA" fi if test "$clock_gettime" = "yes" ; then @@ -1181,6 +1201,9 @@ fi if test "$rlimit_memlock" = "yes" ; then output_sym "CONFIG_RLIMIT_MEMLOCK" fi +if test "$pwritev" = "yes" ; then + output_sym "CONFIG_PWRITEV" +fi echo "LIBS+=$LIBS" >> $config_host_mak echo "CFLAGS+=$CFLAGS" >> $config_host_mak