> configure: > > ./configure ... \ > --with-python \ > PYCXX_SRCDIR=/usr/share/python2.7/CXX/Python2 > > > Makefile.am: > > nodist_libpyroute_la_SOURCES = $(PYCXX_SRCDIR)/cxxextensions.c > nodist_libpyroute_la_SOURCES += $(PYCXX_SRCDIR)/cxx_extensions.cxx > nodist_libpyroute_la_SOURCES += $(PYCXX_SRCDIR)/cxxsupport.cxx > nodist_libpyroute_la_SOURCES += > $(PYCXX_SRCDIR)/../IndirectPythonInterface.cxx
It's possible that this would work if PYCXX_SRCDIR was a variable in Makefile.am (I haven't checked). The page you linked to said that this wouldn't work, though. What you've done here is different: supplying the value of PYCXX_SRCDIR with configure. This won't work because all the files need to be given explicitly in Makefile.am. (https://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html#FOOT3)