Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 17, 2004, 12:11:20 PM (21 years ago)
Author:
bensch
Message:

orxonox/trunk: merged and copied all files from branches/chris into trunk. it all seems to be in propper order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r2018 r2190  
    1111case `uname` in
    1212  *MINGW*)
    13     mingw=yes
     13    mingw="yes"
    1414    MSBITFIELDS="-mms-bitfields"
     15    MWINDOWS="-mwindows"
    1516    ;;
    1617  *)
    17     mingw=no
     18    mingw="no"
    1819    ;;
    1920esac
     
    103104fi
    104105
     106## mingw CHECK
     107if test $mingw = yes ; then
     108        AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes)
     109        if test $FOUND_mingw32 = "yes"; then
     110                LIBS="$LIBS -lmingw32"
     111        fi
     112fi
     113
     114## SDL CHECK
     115
     116#checking for SDL libs
     117AC_CHECK_HEADERS(SDL/SDL.h ,,
     118      [AC_MSG_ERROR([cannot find SDL headers]) ])
     119if test $mingw = no ; then
     120        AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes)
     121        if test "$FOUND_SDL" = "yes" ; then
     122                LIBS="$LIBS -lSDL"
     123        fi
     124#   checking for Windows sdl library
     125else
     126    AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes)
     127    if test "$FOUND_sdlmain" = "yes" ; then
     128        LIBS="$LIBS -lsdlmain"
     129    fi
     130        AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes)
     131        if test "$FOUND_sdl" = "yes" ; then
     132                LIBS="$LIBS -lsdl"
     133        fi
     134fi
     135
     136#checking for pthread libs
     137AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     138if test "$FOUND_pthread" = "yes" ; then
     139    LIBS="$LIBS -lpthread"
     140fi
     141
     142
     143
     144
    105145# FIXME: Replace `main' with a function in `-lm':
    106146AC_CHECK_LIB([m], [main])
Note: See TracChangeset for help on using the changeset viewer.