If I'm compiling a package from source how do I find the required dependency? 
I notice when compiling Python 3 on Centos7 the only way I could find the required libraries and such was to run the configuration script that came with the tar ball and look for failures.
Is there a better way to do this?