Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoconf: Use pkg-config for sdl2 #520

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kangie
Copy link

@Kangie Kangie commented Sep 24, 2024

The correct way to search for sdl2 is pkg-config,
as per libsdl-org/SDL#6140

Replace our legacy AM_PATH_SDL2 macro with
AX_REQUIRE_PKG and update the minimum version
to 2.0.16 to reflect reality.

Drop m4/ since this was our last macro.

SDL2 is not optional, remove the only ifdef SDL block as without the macro setting that for us we fail
to compile.

Closes: #511

The correct way to search for sdl2 is pkg-config,
as per libsdl-org/SDL#6140

Replace our legacy `AM_PATH_SDL2` macro with
`AX_REQUIRE_PKG` and update the minimum version
to 2.0.16 to reflect reality.

Drop `m4/` since this was our last macro.

SDL2 is not optional, remove the only `ifdef SDL` block
as without the macro setting that for us we fail
to compile.

Closes: Aleph-One-Marathon#511
Signed-off-by: Matt Jolly <[email protected]>
@treellama
Copy link
Member

If you read to the bottom of the linked issue, this is not deprecated in SDL 2. But it's good to keep in mind for when we switch to SDL 3!

@Kangie
Copy link
Author

Kangie commented Sep 24, 2024

It's not yet deprecated however there's also no reason to continue using the old macro when pkg-config "just works".

We also haven't redefined the minimum version of sdl2 required in configure in line with recent code changes.

Edit: to be clear, this latter part is resulting in downstream failures during a build which should be caught at configure time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to build on Debian Bullseye
2 participants