What made me to propose this:
I am looking at why the binaries aren't linked with libSDL2.so pkg-config --cflags sdl2 finds sdl2, there is no build option to enable or disable sdl2, but the binaries aren't linked with it. Knowing what does the build think HAVE_SDL2 value is would be useful.
For example, it should produce a report like this with all relevant options:
What made me to propose this: I am looking at why the binaries aren't linked with libSDL2.so
pkg-config --cflags sdl2
finds sdl2, there is no build option to enable or disable sdl2, but the binaries aren't linked with it. Knowing what does the build think HAVE_SDL2 value is would be useful.