diff -up configure.orig configure --- configure.orig 2022-01-19 20:48:45.387511953 +0100 +++ configure 2022-01-19 20:59:28.559523809 +0100 @@ -15016,108 +15016,13 @@ else printf "%s\n" "no" >&6; } fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default TCP send buffer size" >&5 -printf %s "checking default TCP send buffer size... " >&6; } -if test "$cross_compiling" = yes -then : - CONF_TCP_SO_SNDBUF=65536 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#ifdef STDC_HEADERS -# include -# include -#else -# if HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_UNISTD_H -# include -#endif -#include -#include -#include -int main(void) -{ - int fd,val=0,len=sizeof(int); - if ((fd = socket(PF_INET, SOCK_STREAM, 0)) < 0) return 1; - if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) return 1; - if (val <= 0) return 1; - fprintf (fopen("conftestval", "w"), "%d\n", val); - return 0; -} - -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - CONF_TCP_SO_SNDBUF=`cat conftestval` -else $as_nop - CONF_TCP_SO_SNDBUF=65536 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONF_TCP_SO_SNDBUF" >&5 -printf "%s\n" "$CONF_TCP_SO_SNDBUF" >&6; } - -printf "%s\n" "#define CONF_TCP_SO_SNDBUF $CONF_TCP_SO_SNDBUF" >>confdefs.h +printf "%s\n" "#define CONF_TCP_SO_SNDBUF 65536" >>confdefs.h -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default TCP receive buffer size" >&5 -printf %s "checking default TCP receive buffer size... " >&6; } -if test "$cross_compiling" = yes -then : - CONF_TCP_SO_RCVBUF=65536 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#ifdef STDC_HEADERS -# include -# include -#else -# if HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_UNISTD_H -# include -#endif -#include -#include -#include -int main(void) -{ - int fd,val=0,len=sizeof(int); - if ((fd = socket(PF_INET, SOCK_STREAM, 0)) < 0) return 1; - if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) return 1; - if (val <= 0) return 1; - fprintf (fopen("conftestval", "w"), "%d\n", val); - return 0; -} - -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - CONF_TCP_SO_RCVBUF=`cat conftestval` -else $as_nop - CONF_TCP_SO_RCVBUF=65536 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONF_TCP_SO_RCVBUF" >&5 -printf "%s\n" "$CONF_TCP_SO_RCVBUF" >&6; } -printf "%s\n" "#define CONF_TCP_SO_RCVBUF $CONF_TCP_SO_RCVBUF" >>confdefs.h +printf "%s\n" "#define CONF_TCP_SO_RCVBUF 65536" >>confdefs.h