configure: avoid using a shell function in autoconf

AC_DEFUN exsists for the purpose of creating functions in autoconf
scripts, use it instead of a shell function.
1 file changed