From: kakaroto Date: Wed, 7 Sep 2011 06:53:42 +0000 (+0000) Subject: Ecore: Use pkg-config to check for SDL, not sdl-config (which fails for cross-compila... X-Git-Tag: build/2012-07-04.173327~871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52565ef94413ed822ad77247d6dfca8bef2d8f49;p=profile%2Fivi%2Fecore.git Ecore: Use pkg-config to check for SDL, not sdl-config (which fails for cross-compilations) git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@63249 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.ac b/configure.ac index 2880161..fbdfdc4 100644 --- a/configure.ac +++ b/configure.ac @@ -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],