From d6b23b13af55753eafa116b55c2688dccbf17646 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 19 Feb 2007 07:06:05 +0000 Subject: [PATCH] Verify the SDL_CONFIG value. --- src/xpdev/Common.gmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xpdev/Common.gmake b/src/xpdev/Common.gmake index 96a84dc29f..bb9b7f1b22 100644 --- a/src/xpdev/Common.gmake +++ b/src/xpdev/Common.gmake @@ -71,7 +71,11 @@ endif # Find SDL headers! ifndef WITHOUT_SDL - ifndef SDL_CONFIG + ifdef SDL_CONFIG + ifeq ($(shell ${SDL_CONFIG} --cflags > /dev/null 2>&1 && echo YES),YES) + WITH_SDL := 1 + endif + else ifeq ($(os),darwin) ifeq ($(shell if [ -d /Library/Frameworks/SDL.framework ] ; then echo YES ; fi),YES) WITH_SDL := 1 -- GitLab