[PATCH v3] Add configure check for python program

Steve Ellcey sellcey@caviumnetworks.com
Thu Dec 22 17:24:00 GMT 2016


On Thu, 2016-12-22 at 08:07 +0530, Siddhesh Poyarekar wrote:
> Add a configure check that looks for python3 and python in that order
> since we had agreed in the past to prefer python3 over python in all
> our code.  The patch also adjusts invocations through the various
> Makefiles to use the set variable.
> 
> Changes:
> 
>  - Added tests-printers to tests-unsupported instead of removing
> them.
> 
> 	* configure.ac: Check for python3 or python.
> 	* configure: Regenerated.
> 	* config.make.in (PYTHON): New variable.
> 	* benchtests/Makefile: Don't define PYTHON.
> 	(bench): Define target only if PYTHON was defined.
> 	* Rules: Don't define PYTHON.
> 	Define pretty printer targets only if PYTHON was defined.
> 	(tests-printers): Add to tests-unsupported if PYTHON is not
> 	found.
> 	(python-flags, python-invoke): Remove.
> 	(tests-printers-out): Use PYTHON instead of python-invoke.

Yes, I like this version better.  It worked fine on my machine.

Steve Ellcey
sellcey@caviumnetworks.com



More information about the Libc-alpha mailing list