X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=58f02fa57ed51f1721dc79f3c19cfcacde6f6af1;hp=3e3c9785e889cc9ae97dadac32cae1b9e718a886;hb=b8c6b4def6391f8be0249c16e5cc4c0adc3a61b8;hpb=1008602c5af0b098b45020a0ac63408d979a41b0 diff --git a/configure b/configure index 3e3c9785..58f02fa5 100755 --- a/configure +++ b/configure @@ -133,7 +133,7 @@ cpu="" # default options show_help="no" exit_val=0 -gfio="no" +gfio_check="no" libhdfs="no" # parse options @@ -153,7 +153,7 @@ for opt do --build-32bit-win) build_32bit_win="yes" ;; --enable-gfio) - gfio="yes" + gfio_check="yes" ;; --disable-numa) disable_numa="yes" ;; @@ -982,7 +982,8 @@ echo "__thread $tls_thread" ########################################## # Check if we have required gtk/glib support for gfio -if test "$gfio" = "yes" ; then +gfio="no" +if test "$gfio_check" = "yes" ; then cat > $TMPC << EOF #include #include @@ -1021,7 +1022,9 @@ else fi fi -echo "gtk 2.18 or higher $gfio" +if test "$gfio_check" = "yes" ; then + echo "gtk 2.18 or higher $gfio" +fi # Check whether we have getrusage(RUSAGE_THREAD) rusage_thread="no" @@ -1093,6 +1096,26 @@ if compile_prog "" "" "SO_SNDBUF"; then fi echo "Net engine window_size $window_size" +########################################## +# Check whether we have TCP_MAXSEG +mss="no" +cat > $TMPC << EOF +#include +#include +#include +#include +#include +#include +int main(int argc, char **argv) +{ + return setsockopt(0, IPPROTO_TCP, TCP_MAXSEG, NULL, 0); +} +EOF +if compile_prog "" "" "TCP_MAXSEG"; then + mss="yes" +fi +echo "TCP_MAXSEG $mss" + ########################################## # Check whether we have RLIMIT_MEMLOCK rlimit_memlock="no" @@ -1451,6 +1474,9 @@ fi if test "$window_size" = "yes" ; then output_sym "CONFIG_NET_WINDOWSIZE" fi +if test "$mss" = "yes" ; then + output_sym "CONFIG_NET_MSS" +fi if test "$rlimit_memlock" = "yes" ; then output_sym "CONFIG_RLIMIT_MEMLOCK" fi