Fixed macOS framework detection in sdl2.m4

Fixes https://github.com/libsdl-org/SDL/issues/6141
(cherry picked from commit 3d516b841a)
This commit is contained in:
Sam Lantinga 2022-08-26 09:12:56 -07:00 committed by Ozkan Sezer
parent abac672a2d
commit 531ddf5eb5

View file

@ -70,8 +70,8 @@ AC_ARG_VAR(SDL2_FRAMEWORK, [Path to SDL2.framework])
sdl_framework=$SDL2_FRAMEWORK
else
for d in / ~/ /System/; do
if test -d "$dLibrary/Frameworks/SDL2.framework"; then
sdl_framework="$dLibrary/Frameworks/SDL2.framework"
if test -d "${d}Library/Frameworks/SDL2.framework"; then
sdl_framework="${d}Library/Frameworks/SDL2.framework"
fi
done
fi