Some system may not have bash installed in /bin, and autogen.sh does not use bash-specific features. It should be changed to /bin/sh. Some system may not have gcc installled. Using cc is better, but -print-multi-os-directory is also not portable.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.