On Wed, Sep 7, 2011 at 8:53 AM, Enlightenment SVN <no-re...@enlightenment.org> wrote: > Log: > Ecore: Use pkg-config to check for SDL, not sdl-config (which fails for > cross-compilations)
sdl-config is a shell script that just does some echo things. It work just fine with cross-compilation as long as you specify it at configure time. The issue is that older, read sdl 1.2, version don't come with a pkg-config file. So it would be better if both method where available. > Author: kakaroto > Date: 2011-09-06 23:53:42 -0700 (Tue, 06 Sep 2011) > New Revision: 63249 > Trac: http://trac.enlightenment.org/e/changeset/63249 > > Modified: > trunk/ecore/configure.ac > > Modified: trunk/ecore/configure.ac > =================================================================== > --- trunk/ecore/configure.ac 2011-09-07 06:53:35 UTC (rev 63248) > +++ trunk/ecore/configure.ac 2011-09-07 06:53:42 UTC (rev 63249) > @@ -523,26 +523,8 @@ > # 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]) > - ]) > +PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"]) > > -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 > PKG_CHECK_EXISTS([sdl >= 1.3.0], > [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])]) > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > -- Cedric BAIL ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel