lal.pc (and all other .pc files) invalid, breaks pkg-config based linking against lalsuite
Description of problem
all of the .pc files from lalsuite are found to have lines like the following in them:
LAL_PYTHON_PATH=${PYTHON_EXEC_PREFIX}/lib/python3.9/site-packages
pkg-config is not used for python builds, so I don't understand what mechanism is adding this to the file, but PYTHON_EXEC_PREFIX is not defined in the .pc file, and any attempt to query the file results in an error message like, for example,
$ pkg-config --exists --print-errors "lal >= 6.19.0 lalsupport >= 6.19.0"
Variable 'PYTHON_EXEC_PREFIX' not defined in '/home/kipp/local/lib/pkgconfig/lal.pc'
this prevents pkg-config from being used to get compiler and linker flags for building other packages that link to lalsuite.
Expected behavior
not that error message
Steps to reproduce
see above
Context/environment
Suggested solutions
remove the unused *_PYTHON_PATH variable declarations from *.pc. there are other unused variables, like *_OCTAVE_PATH, that can be removed as well, but at this time their presence is harmless.
Edited by Kipp Cannon