When using gcc 14 on Debian testing, many of the configure tests fail because modern gcc is stricter in rejecting some C language errors in the tests. The effect is that e.g. zlib is not found and the values of ACCEPT_TYPE_ARG3, MEMCMP_BROKEN and NBLOCK_POSIX are wrong.
A workaround is to run configure with e.g. CFLAGS='-g -O2 -fpermissive'.
Related: it should be possible to rebuild configure with a modern version of autoconf.