Ecore: Use pkg-config to check for SDL, not sdl-config (which fails for cross-compilations)

SVN revision: 63249
This commit is contained in:
Youness Alaoui 2011-09-07 06:53:42 +00:00
parent ada2b9e072
commit 3b6a0b6bae
1 changed files with 1 additions and 19 deletions

View File

@ -523,25 +523,7 @@ fi
# SDL library (ecore_sdl)
have_sdl="no"
SDL_CONFIG="sdl-config"
AC_ARG_WITH([sdl-config],
[AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
[
SDL_CONFIG=$withval
AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
])
AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
if test -n "$SDL_CONFIG" ; then
SDL_CFLAGS=`$SDL_CONFIG --cflags`
SDL_LIBS=`$SDL_CONFIG --libs`
AC_SUBST(SDL_CFLAGS)
AC_SUBST(SDL_LIBS)
have_sdl="yes"
else
PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
fi
PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
if test "x${have_sdl}" = "xyes" ; then
PKG_CHECK_EXISTS([sdl >= 1.3.0],