Fixed bug 4544 - SDL2.m4 SDL2.framework patch made it impossible to fail detection

Stian Skjelstad

check if $sdl_framework is set, before checking if directory exists

Patch that was merged here made it impossible for the SDL2 detection to fail, since one of the if statements fails to check if a variable is set or not.

if test -d $sdl_framework; then

can evaluate to true in some shells. I guess it falls into undefined behaviour when looking at the POSIX standard.
1 file changed