With PHP 5.6.4, I got this error:
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
**ERROR** Could not configure PHP build