forked from enlightenment/efl
Ecore: Use pkg-config to check for SDL, not sdl-config (which fails for cross-compilations)
SVN revision: 63249
This commit is contained in:
parent
ada2b9e072
commit
3b6a0b6bae
|
@ -523,25 +523,7 @@ fi
|
||||||
# SDL library (ecore_sdl)
|
# SDL library (ecore_sdl)
|
||||||
|
|
||||||
have_sdl="no"
|
have_sdl="no"
|
||||||
SDL_CONFIG="sdl-config"
|
PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
|
||||||
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
|
|
||||||
|
|
||||||
if test "x${have_sdl}" = "xyes" ; then
|
if test "x${have_sdl}" = "xyes" ; then
|
||||||
PKG_CHECK_EXISTS([sdl >= 1.3.0],
|
PKG_CHECK_EXISTS([sdl >= 1.3.0],
|
||||||
|
|
Loading…
Reference in New Issue