Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 18, 2005, 10:10:26 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: efence compile support, minor changes at animation, and texture has now only support for sdl-image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r3790 r3863  
    142142
    143143#-------------------#
    144 # SDL_image-disable #
    145 #-------------------#
    146 def_sdl_image=yes
    147 AC_MSG_CHECKING([if SDL_image should be enabled])
    148 AC_ARG_WITH([sdl_image],
    149         AC_HELP_STRING( [--without-sdl-image],
    150         [Prevents SDL_image from being loaded]), [def_sdl_image=no])
    151 if test x$def_sdl_image = xyes; then
    152   echo "yes"
    153 fi
    154 if test x$def_sdl_image = xno; then
    155   echo "no"
    156 fi
    157 
    158 #-------------------#
    159144# SubProject-enable #
    160145#-------------------#
     
    181166        [builds orxonox with profiling support]), [def_profiling=yes])
    182167if test x$def_profiling = xyes; then
    183 AM_CONDITIONAL(SUB_PROJECTS, test x$def_sub_projects = xyes)
    184168  echo "yes"
    185169  CXXFLAGS="$CXXFLAGS -pg"
    186170fi
    187171if test x$def_profiling = xno; then
     172  echo "no"
     173fi
     174
     175#----------------#
     176# efence Enabled #
     177#----------------#
     178def_efence=no
     179AC_MSG_CHECKING([if efence should be enabled])
     180AC_ARG_ENABLE([efence],
     181        AC_HELP_STRING( [--enable-efence],
     182        [builds orxonox with efence support]), [def_efence=yes])
     183if test x$def_efence = xyes; then
     184  echo "yes"
     185fi
     186if test x$def_efence = xno; then
    188187  echo "no"
    189188fi
     
    444443# SDL_Image #
    445444#-----------#
    446 if test x$def_sdl_image = xyes; then
    447445# checking for SDL_image-headers
    448   AC_CHECK_HEADERS([SDL_image.h] ,,
    449       [echo "sdl_image not found. falling back to other options"; def_sdl_image=no ])
    450 fi
    451 if test x$def_sdl_image = xyes; then
     446AC_CHECK_HEADERS([SDL_image.h] ,,
     447    [echo "sdl_image header not found."; def_sdl_image=no; exit -1])
    452448# checking for SDL_image-lib
    453   AC_CHECK_LIB([SDL_image], [main], [FOUND_SDL_image=yes])
    454      if test x$FOUND_SDL_image = xyes ; then
    455        LIBS="$LIBS -lSDL_image"
    456      else
    457         echo "------------------"
    458         echo "SDL_image library not found."
    459         echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
    460         echo "------------------"
    461         exit -1
    462      fi   
    463 fi
    464 
    465 ## case no SDL-image:
    466 if test x$def_sdl_image = xno; then
    467 #---------#
    468 # libjpeg #
    469 #---------#
    470  AC_CHECK_HEADERS([jpeglib.h], [jpegHeader="yes"],
    471         [jpegHeader="no"])
    472  if test x$jpegHeader = xno; then
    473         echo " not including jpeg."
    474  else
    475   AC_CHECK_LIB([jpeg], [main], [FOUND_jpeg=yes])
    476     if test x$FOUND_jpeg = xyes ; then
    477       LIBS="$LIBS -ljpeg"
    478     else
    479          echo "------------------"
    480          echo "jpeg library not found."
    481          echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
    482          echo "------------------"
    483          exit -1
    484     fi   
    485  fi
    486 
    487 #--------#
    488 # libpng #
    489 #--------#
    490  AC_CHECK_HEADERS([png.h], [pngHeader="yes"],
    491         [pngHeader="no"])
    492  if test x$pngHeader = xno; then
    493         echo " not including png."
    494  else
    495   AC_CHECK_LIB([png], [main], FOUND_png=yes)
    496     if test x$FOUND_png = xyes ; then
    497       LIBS="$LIBS -lpng"
    498     else
    499          echo "------------------"
    500          echo "png library not found."
    501          echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
    502          echo "------------------"
    503          exit -1
    504     fi
    505  fi   
    506 fi
     449AC_CHECK_LIB([SDL_image], [main], [FOUND_SDL_image=yes])
     450   if test x$FOUND_SDL_image = xyes ; then
     451     LIBS="$LIBS -lSDL_image"
     452   else
     453      echo "------------------"
     454      echo "SDL_image library not found."
     455      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
     456      echo "------------------"
     457      exit -1
     458   fi
    507459
    508460#-----#
     
    583535fi
    584536
     537
     538#--------#
     539# efence #
     540#--------#
     541if test x$def_efence = xyes ; then
     542  AC_CHECK_LIB([efence], [main], [FOUND_efence=yes])
     543   if test x$FOUND_efence = xyes ; then
     544      LIBS="$LIBS -lefence"
     545   fi
     546 
     547fi
    585548
    586549# FIXME: Replace `main' with a function in `-lm':
Note: See TracChangeset for help on using the changeset viewer.