X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=0637b105fb2a36ef0f0c296fb15d2ec5aa884eb4;hp=38706a9263d289d7ae06592fdb26bd176d72f690;hb=8822b8271b7d110a2b07795d7d25ad5677bc05c4;hpb=cefd2a94b408b9c3be0300edb1270a546e7f09fe diff --git a/configure b/configure index 38706a92..0637b105 100755 --- a/configure +++ b/configure @@ -167,6 +167,8 @@ for opt do ;; --build-32bit-win) build_32bit_win="yes" ;; + --target-win-ver=*) target_win_ver="$optarg" + ;; --build-static) build_static="yes" ;; --enable-gfio) gfio_check="yes" @@ -179,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" @@ -213,6 +217,7 @@ if test "$show_help" = "yes" ; then echo "--cc= Specify compiler to use" echo "--extra-cflags= Specify extra CFLAGS to pass to compiler" echo "--build-32bit-win Enable 32-bit build on Windows" + echo "--target-win-ver= Minimum version of Windows to target (XP or 7)" echo "--build-static Build a static fio" echo "--esx Configure build options for esx" echo "--enable-gfio Enable building of gtk gfio" @@ -329,20 +334,27 @@ CYGWIN*) cc="x86_64-w64-mingw32-gcc" fi fi - if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then - output_sym "CONFIG_32BIT" + + target_win_ver=$(echo "$target_win_ver" | tr '[:lower:]' '[:upper:]') + if test -z "$target_win_ver"; then + # Default Windows API target + target_win_ver="7" + fi + if test "$target_win_ver" = "XP"; then + output_sym "CONFIG_WINDOWS_XP" + elif test "$target_win_ver" = "7"; then + output_sym "CONFIG_WINDOWS_7" + CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0601" else - output_sym "CONFIG_64BIT_LLP64" + fatal "Unknown target Windows version" fi + # We need this to be output_sym'd here because this is Windows specific. # The regular configure path never sets this config. output_sym "CONFIG_WINDOWSAIO" # We now take the regular configuration path without having exit 0 here. # Flags below are still necessary mostly for MinGW. socklen_t="yes" - sfaa="yes" - sync_sync="yes" - cmp_swap="yes" rusage_thread="yes" fdatasync="yes" clock_gettime="yes" # clock_monotonic probe has dependency on this @@ -350,11 +362,7 @@ CYGWIN*) gettimeofday="yes" sched_idle="yes" tcp_nodelay="yes" - tls_thread="yes" - static_assert="yes" ipv6="yes" - mkdir_two="no" - echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak ;; esac @@ -498,6 +506,9 @@ fi print_config "Operating system" "$targetos" print_config "CPU" "$cpu" print_config "Big endian" "$bigendian" +if test ! -z "$target_win_ver"; then + print_config "Target Windows version" "$target_win_ver" +fi print_config "Compiler" "$cc" print_config "Cross compile" "$cross_compile" echo @@ -1557,6 +1568,20 @@ if compile_prog "" "" "ipv6"; then fi print_config "IPv6 helpers" "$ipv6" +########################################## +# check for http +if test "$http" != "yes" ; then + http="no" +fi +if test "$disable_http" != "yes" && $(pkg-config --exists libcurl openssl); then + if $(pkg-config --atleast-version=1.1.0 openssl); then + output_sym "CONFIG_HAVE_OPAQUE_HMAC_CTX" + fi + LIBS="$(pkg-config --libs libcurl openssl) $LIBS" + http="yes" +fi +print_config "http engine" "$http" + ########################################## # check for rados if test "$rados" != "yes" ; then @@ -1885,15 +1910,15 @@ fi ########################################## # Report whether pmemblk engine is enabled -print_config "NVML pmemblk engine" "$pmemblk" +print_config "PMDK pmemblk engine" "$pmemblk" ########################################## # Report whether dev-dax engine is enabled -print_config "NVML dev-dax engine" "$devdax" +print_config "PMDK dev-dax engine" "$devdax" ########################################## # Report whether libpmem engine is enabled -print_config "NVML libpmem engine" "$pmem" +print_config "PMDK libpmem engine" "$pmem" ########################################## # Check if we have lex/yacc available @@ -2209,10 +2234,10 @@ if test "$posix_pshared" = "yes" ; then output_sym "CONFIG_PSHARED" fi if test "$have_asprintf" = "yes" ; then - output_sym "HAVE_ASPRINTF" + output_sym "CONFIG_HAVE_ASPRINTF" fi if test "$have_vasprintf" = "yes" ; then - output_sym "HAVE_VASPRINTF" + output_sym "CONFIG_HAVE_VASPRINTF" fi if test "$linux_fallocate" = "yes" ; then output_sym "CONFIG_LINUX_FALLOCATE" @@ -2337,6 +2362,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