Several macros are required in configure.ac to use pyconfigure. These are:
This macro imports all of the Python Autoconf macros. If you choose to write your own macros for other purposes, you would also include them in this manner.
This initializes Autoconf and also substitutes your project name and version in any output that it generates.
Now that Autoconf is initialized, we inform it of the location of our macros.
This is the key macro. It finds the highest-version Python interpreter
available on the system and saves its path in the
These two macros figure out where Python expects packages to be
installed (i.e. /usr/lib/python2.7/site-packages/) and saves
them in the variables
respectively, for use in Makefile.in