From 19183b5dcea62a0550ea799c173b988c7354c2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 30 Aug 2015 14:34:24 +0200 Subject: Fix FTBFS on RHEL 5 because SDL is not detected This resolves Bug 2488 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- ConfigureChecks.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 1fedc9a..f3872b9 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -74,7 +74,12 @@ if( BUILD_NOATUN_PLUGINS ) if( WITH_SDL ) pkg_search_module( SDL sdl ) if( NOT SDL_FOUND ) - tde_message_fatal( "SDL is requested, but was not found on your system" ) + check_include_file( SDL/SDL.h HAVE_SDL_H ) + if( NOT HAVE_SDL_H ) + tde_message_fatal( "SDL is requested, but was not found on your system" ) + endif ( ) + set ( SDL_INCLUDE_DIRS /usr/include/SDL ) + set ( SDL_LIBRARIES SDL pthread ) endif( ) endif( WITH_SDL ) -- cgit v1.2.3