Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4664 in orxonox.OLD for orxonox/trunk/configure.ac


Ignore:
Timestamp:
Jun 23, 2005, 2:59:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better check for SDL (on linux)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r4662 r4664  
    328328    fi
    329329
    330 # checking for SDL-headers
    331     AC_CHECK_HEADERS([SDL/SDL.h] ,,
    332       [AC_MSG_ERROR([cannot find SDL headers]) ])
    333 
    334 # checking for SDL-lib
    335     AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes)
    336      if test x$FOUND_SDL = xyes ; then
    337        LIBS="$LIBS -lSDL"
    338      else
    339         echo "------------------"
    340         echo "SDL library not found."
    341         echo "please install the SDL library, which can be found at http://www.libsdl.org"
    342         echo "------------------"
    343         exit -1
    344      fi
    345 
    346 
    347 ## checking for SDL
    348 #    SDL_VERSION=1.2.7
    349 #    AM_PATH_SDL($SDL_VERSION,
    350 #      :,
    351 #      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
    352 #      )
    353 #    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
    354 #    LIBS="$LIBS $SDL_LIBS"
     330# checking for SDL
     331  AC_MSG_CHECKING([for SDL-version])
     332  SDL_VERSION=`sdl-config --version`
     333  echo $SDL_VERSION
     334
     335   CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
     336   AC_CHECK_HEADERS([SDL/SDL.h] ,,
     337      [AC_CHECK_HEADERS([SDL.h] ,,AC_MSG_ERROR([cannot find SDL header. please download from libsdl.org])]))
     338
     339   LIBS="`sdl-config --libs` $LIBS"
    355340    ;;
     341
    356342#-----------#
    357343# MAC -OS X #
Note: See TracChangeset for help on using the changeset viewer.