Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 10, 2004, 7:44:36 PM (21 years ago)
Author:
bensch
Message:

orxonox/trunk: merged branches/images back into the trunk.
merged with command: svn merge bensches/images/ trunk/ -r 3084:HEAD

Conflicts in configure/.ac

resolved in favor of branches/images (newer)

Mayor differences:

  1. Image-Importing capability.
  2. configure remade for usage with sdl-image/jpeglib and so on.
  3. Absolutely no change in the trunk/src
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r3101 r3140  
    2020AC_PROG_CXX
    2121AC_HEADER_STDC
    22 
    2322
    2423### CHECKING  OPTIONAT ARGUMENTS
     
    3534  echo "no"
    3635fi
    37 
    38 
     36### SDL_image-disable
     37def_sdl_image=yes
     38AC_MSG_CHECKING([if SDL_image should be enabled])
     39AC_ARG_ENABLE([sdl_image],
     40        AC_HELP_STRING( [--disabel-sdl-image],
     41        [Prevents SDL_image from being loaded]), [def_sdl_image=no])
     42if test "$def_sdl_image" = yes; then
     43  echo "yes"
     44fi
     45if test "$def_sdl_image" = no; then
     46  echo "no"
     47fi
    3948
    4049### CHECKING FOR SYSTEM ###
     
    116125    fi
    117126
    118 
    119127    ;;
    120128
     
    160168      [AC_MSG_ERROR([cannot find SDL headers]) ])
    161169
    162 # checking for SDL-libs
     170# checking for SDL-lib
    163171    AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes)
    164172     if test "$FOUND_SDL" = "yes" ; then
     
    171179        exit -1
    172180     fi   
     181
    173182
    174183## checking for SDL
     
    188197 osX="yes"
    189198
     199 CPPFLAGS="-I/sw/include $CPPFLAGS"
    190200# checking gl header
    191201   AC_CHECK_HEADERS(OpenGL/gl.h ,,
     
    212222       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
    213223       LIBS="$LIBS $SDL_LIBS"
     224
    214225    ;;
    215226
     
    220231AC_SUBST(MSBITFIELDS)
    221232
    222 
    223 
     233## check for SDL_Image
     234if test "$def_sdl_image" = "yes"; then
     235# checking for SDL_image-headers
     236  AC_CHECK_HEADERS(SDL/SDL_image.h ,,
     237      [echo "sdl_image not found. falling back to other options"; def_sdl_image=no ])
     238fi
     239if test "$def_sdl_image" = "yes"; then
     240# checking for SDL_image-lib
     241  AC_CHECK_LIB([SDL_image], [main], FOUND_SDL_image=yes)
     242     if test "$FOUND_SDL_image" = "yes" ; then
     243       LIBS="$LIBS -lSDL_image"
     244     else
     245        echo "------------------"
     246        echo "SDL_image library not found."
     247        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
     248        echo "------------------"
     249        exit -1
     250     fi   
     251fi
     252
     253
     254if test "$def_sdl_image" = "no"; then
     255 ## checking for libjpeg
     256 AC_CHECK_HEADERS(jpeglib.h ,jpegHeader="yes",
     257        jpegHeader="no")
     258 if test $jpegHeader = "no"; then
     259        echo " not including jpeg."
     260 else
     261  AC_CHECK_LIB([jpeg], [main], FOUND_jpeg=yes)
     262    if test "$FOUND_jpeg" = "yes" ; then
     263      LIBS="$LIBS -ljpeg"
     264    else
     265         echo "------------------"
     266         echo "jpeg library not found."
     267         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
     268         echo "------------------"
     269         exit -1
     270    fi   
     271 fi
     272
     273 ## checking for libpng
     274 AC_CHECK_HEADERS(png.h ,pngHeader="yes",
     275        pngHeader="no")
     276 if test $pngHeader = "no"; then
     277        echo " not including png."
     278 else
     279  AC_CHECK_LIB([png], [main], FOUND_png=yes)
     280    if test "$FOUND_png" = "yes" ; then
     281      LIBS="$LIBS -lpng"
     282    else
     283         echo "------------------"
     284         echo "png library not found."
     285         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
     286         echo "------------------"
     287         exit -1
     288    fi
     289 fi   
     290fi
    224291
    225292## checking for GTK
Note: See TracChangeset for help on using the changeset viewer.