Originally reported downstream in Gentoo at https://bugs.gentoo.org/899868.
The __progname
configure test currently relies on an implicit declaration of puts
which fails with newer compilers like GCC 14 and Clang 16 that make -Wimplicit-function-declaration
an error by default.
The attached patch fixes it.
patch applied
Thanks!