fall back to sdl-config if SDL_CFLAGS are empty

works around buggy Solaris installations where pkg-config is
installed but can't find the SDL config file
This commit is contained in:
Ludwig Nussel 2009-05-05 18:19:34 +00:00
parent ec846d23b2
commit 161dc2ddf5
1 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,9 @@ ifeq ($(shell which pkg-config > /dev/null; echo $$?),0)
# FIXME: introduce CLIENT_CFLAGS
SDL_CFLAGS=$(shell pkg-config --cflags sdl|sed 's/-Dmain=SDL_main//')
SDL_LIBS=$(shell pkg-config --libs sdl)
else
endif
# Use sdl-config if all else fails
ifeq ($(SDL_CFLAGS),)
ifeq ($(shell which sdl-config > /dev/null; echo $$?),0)
SDL_CFLAGS=$(shell sdl-config --cflags)
SDL_LIBS=$(shell sdl-config --libs)