Search for SDL.h in addition to SDL/SDL.h

This commit is contained in:
Chris Robinson
2008-12-12 11:09:23 -08:00
parent 3056f91ec5
commit 1acd6da745
3 changed files with 15 additions and 2 deletions
+4
View File
@@ -30,7 +30,11 @@
#include <dlfcn.h>
#endif
#ifdef HAVE_SDL_SDL_H
#include <SDL/SDL.h>
#elif defined(HAVE_SDL_H)
#include <SDL.h>
#endif
static void *sdl_handle;
#define MAKE_FUNC(x) static typeof(x) * p##x
+5 -2
View File
@@ -323,8 +323,11 @@ ENDIF()
# Check SDL backend
IF(SDL)
CHECK_INCLUDE_FILE(SDL/SDL.h HAVE_SDL_SDL_H)
IF(HAVE_SDL_SDL_H)
CHECK_INCLUDE_FILE(SDL.h HAVE_SDL_H)
IF(NOT HAVE_SDL_H)
CHECK_INCLUDE_FILE(SDL/SDL.h HAVE_SDL_SDL_H)
ENDIF()
IF(HAVE_SDL_H OR HAVE_SDL_SDL_H)
CHECK_LIBRARY_EXISTS(SDL SDL_Init "" HAVE_LIBSDL)
IF(HAVE_DLFCN_H OR HAVE_LIBSDL)
SET(HAVE_SDL 1)
+6
View File
@@ -37,6 +37,12 @@
/* Define if we have stdint.h */
#cmakedefine HAVE_STDINT_H
/* Define if we have SDL/SDL.h */
#cmakedefine HAVE_SDL_SDL_H
/* Define if we have SDL.h */
#cmakedefine HAVE_SDL_H
/* Define if we have the __int64 type */
#cmakedefine HAVE___INT64