Fix xhprof build in Gentoo.
Merge pull request #6311 from sabl0r/gentoo

aclocal and autoconf calls are necessary to build the xhprof php extension