diff -r 351ad8c4f3a6 Makefile.pre.in --- a/Makefile.pre.in Wed Apr 22 18:36:44 2015 -0400 +++ b/Makefile.pre.in Thu Apr 23 13:38:50 2015 +0900 @@ -213,7 +213,6 @@ LIBOBJDIR= Python/ LIBOBJS= @LIBOBJS@ -PYTHON= python$(EXE) BUILDPYTHON= python$(BUILDEXE) PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@ @@ -341,6 +340,10 @@ ASDLGEN= @ASDLGEN@ $(srcdir)/Parser/asdl_c.py ########################################################################## +# Typeslots +TYPESLOTSGEN= @TYPESLOTSGEN@ $(srcdir)/Objects/typeslots.py + +########################################################################## # Python OPCODETARGETS_H= \ @@ -834,7 +837,7 @@ Objects/typeobject.o: Objects/typeslots.inc Objects/typeslots.inc: $(srcdir)/Include/typeslots.h $(srcdir)/Objects/typeslots.py - $(PYTHON) $(srcdir)/Objects/typeslots.py < $(srcdir)/Include/typeslots.h > Objects/typeslots.inc + $(TYPESLOTSGEN) < $(srcdir)/Include/typeslots.h > Objects/typeslots.inc ############################################################################ # Header files diff -r 351ad8c4f3a6 configure --- a/configure Wed Apr 22 18:36:44 2015 -0400 +++ b/configure Thu Apr 23 13:38:50 2015 +0900 @@ -674,6 +674,7 @@ INSTALL_SCRIPT INSTALL_PROGRAM PYTHON +TYPESLOTSGEN ASDLGEN ac_ct_READELF READELF @@ -6016,6 +6017,7 @@ + for ac_prog in python$PACKAGE_VERSION python3 python do # Extract the first word of "$ac_prog", so it can be a program name with args. @@ -6061,8 +6063,10 @@ if test "$PYTHON" = not-found; then ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" + TYPESLOTSGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Objects/typeslots.py #" else ASDLGEN="$PYTHON" + TYPESLOTSGEN="$PYTHON" fi diff -r 351ad8c4f3a6 configure.ac --- a/configure.ac Wed Apr 22 18:36:44 2015 -0400 +++ b/configure.ac Thu Apr 23 13:38:50 2015 +0900 @@ -1035,11 +1035,14 @@ AC_SUBST(READELF) AC_SUBST(ASDLGEN) +AC_SUBST(TYPESLOTSGEN) AC_CHECK_PROGS(PYTHON, python$PACKAGE_VERSION python3 python, not-found) if test "$PYTHON" = not-found; then ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #" + TYPESLOTSGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Objects/typeslots.py #" else ASDLGEN="$PYTHON" + TYPESLOTSGEN="$PYTHON" fi