Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2982 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Nov 25, 2004, 1:17:21 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: changed configure.ac. don't know if it works anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r2980 r2982  
    6868    fi
    6969
    70 
    7170# checking for mingw32
    7271    AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes)
     
    7473        LIBS="$LIBS -lmingw32"
    7574    fi
     75# checking for SDL-headers
     76    AC_CHECK_HEADERS(SDL/SDL.h ,,
     77      [AC_MSG_ERROR([cannot find SDL headers]) ])
     78
     79#checking for libSDL
     80    AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes)
     81    if test "$FOUND_sdlmain" = "yes" ; then
     82       LIBS="$LIBS -lsdlmain"
     83    else
     84        echo "------------------"
     85        echo "SDL library not found."
     86        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     87        echo "------------------"
     88        exit 1
     89    fi
     90    AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes)
     91    if test "$FOUND_sdl" = "yes" ; then
     92       LIBS="$LIBS -lsdl"
     93    else
     94        echo "------------------"
     95        echo "SDL library not found."
     96        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     97        echo "------------------"
     98        exit -1
     99    fi
     100
    76101
    77102    ;;
     
    113138         exit -1
    114139    fi   
     140
     141## 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"
    115149    ;;
    116150  *)
     
    122156
    123157
    124 ## checking for SDL
    125 SDL_VERSION=1.2.7
    126 AM_PATH_SDL($SDL_VERSION,
    127    :,
    128    AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
    129    )
    130 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
    131 LIBS="$LIBS $SDL_LIBS"
    132158
    133159
Note: See TracChangeset for help on using the changeset viewer.