Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 26, 2004, 12:07:17 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better configure, just works better on less configured systems like win32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r2982 r2991  
    138138         exit -1
    139139    fi   
     140# checking for SDL-headers
     141    AC_CHECK_HEADERS(SDL/SDL.h ,,
     142      [AC_MSG_ERROR([cannot find SDL headers]) ])
     143
     144    AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes)
     145     if test "$FOUND_SDL" = "yes" ; then
     146       LIBS="$LIBS -lSDL"
     147     else
     148        echo "------------------"
     149        echo "SDL library not found."
     150        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     151        echo "------------------"
     152        exit -1
     153     fi   
    140154
    141155## checking for SDL
    142     SDL_VERSION=1.2.7
    143     AM_PATH_SDL($SDL_VERSION,
    144       :,
    145       AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
    146       )
    147     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
    148     LIBS="$LIBS $SDL_LIBS"
     156#    SDL_VERSION=1.2.7
     157#    AM_PATH_SDL($SDL_VERSION,
     158#      :,
     159#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
     160#      )
     161#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
     162#    LIBS="$LIBS $SDL_LIBS"
    149163    ;;
    150164  *)
    151     mingw="no"
    152165    ;;
    153166esac
Note: See TracChangeset for help on using the changeset viewer.