Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 23, 2005, 2:09:07 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: safer compile support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r4644 r4662  
    215215echo "mingw-WINDOWS detected"
    216216
    217 CPPFLAGS="-I/usr/include/SDL -I/mingw/include/SDL"
     217CPPFLAGS="-I/usr/include -I/mingw/include"
    218218
    219219    mingw="yes"
     
    261261    fi
    262262# checking for SDL-headers
    263     AC_CHECK_HEADERS([SDL.h] ,,
     263    AC_CHECK_HEADERS([SDL/SDL.h] ,,
    264264      [AC_MSG_ERROR([cannot find SDL headers]) ])
    265265
     
    295295 Linux="yes"
    296296
    297 CPPFLAGS="-I/usr/X11R6/include -I/usr/include/SDL"
     297CPPFLAGS="-I/usr/X11R6/include -I/usr/include"
    298298LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
    299299# checking gl header
     
    329329
    330330# checking for SDL-headers
    331     AC_CHECK_HEADERS([SDL.h] ,,
     331    AC_CHECK_HEADERS([SDL/SDL.h] ,,
    332332      [AC_MSG_ERROR([cannot find SDL headers]) ])
    333333
     
    362362 osX="yes"
    363363
    364  CPPFLAGS="-I/sw/include -I/sw/include/SDL $CPPFLAGS"
     364 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
    365365# checking gl header
    366366   AC_CHECK_HEADERS([OpenGL/gl.h] ,,
     
    372372   LIBS="$LIBS -framework OpenGL"
    373373
     374
     375## SDL-check
    374376       SDL_CFLAGS=`sdl-config --cflags`
    375377       SDL_LIBS=`sdl-config --libs`
     
    475477#---------#
    476478# checking for SDL_ttf-headers
    477   AC_CHECK_HEADERS([SDL_ttf.h] ,,
    478       [AC_MSG_ERROR([cannot find SDL_ttf header.])])
     479  AC_CHECK_HEADERS([SDL/SDL_ttf.h] ,,
     480      [AC_CHECK_HEADERS([SDL_ttf.h] ,,AC_MSG_ERROR([cannot find SDL_ttf header.])]))
    479481#fi
    480482# checking for SDL_ttf-lib
     
    496498# checking for SDL_image-headers
    497499AC_CHECK_HEADERS([SDL_image.h] ,,
    498     [echo "sdl_image header not found."; def_sdl_image=no; exit -1])
     500    [AC_CHECK_HEADERS([SDL/SDL_image.h],, AC_MSG_ERROR([sdl_image header not found.]))])
    499501# checking for SDL_image-lib
    500502AC_CHECK_LIB([SDL_image], [main], [FOUND_SDL_image=yes])
     
    596598                 src/lib/gui/Makefile
    597599                 src/lib/tinyxml/Makefile
    598                 src/subprojects/Makefile
     600                src/subprojects/Makefile
    599601                 src/subprojects/testmain/Makefile
    600602                 src/subprojects/importer/Makefile
Note: See TracChangeset for help on using the changeset viewer.