autogen.sh: Avoid debian buggy which output Debian's /usr/bin/which after Debian 11 release starts printing deprecation warning, which causes configure error ("bash not found") when autogen.sh parses output merging stdout and stderr using 2>&1.
To circumvent this problem, temporarily replace invocation to which tool with POSIX-compliant "command -v".