Reporting as Feature Request since I'm neither able to report it as "Patches" nor "Bugs" because of "To create a new ticket, you must be authorized by the project admin."
Attached git-format patch fixes the hardcoding of the pkg-config command for libsystemd detection, analog to the SDL2 detection already in place.
Thanks for the patch, I’ve applied it to the main branch.