Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3108 in orxonox.OLD for orxonox/branches/images/configure.ac


Ignore:
Timestamp:
Dec 6, 2004, 12:13:50 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/images: configure.ac: made SDL_image check global

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/configure.ac

    r3106 r3108  
    126126    fi
    127127
    128 ## check for SDL_Image
    129 if test "$def_sdl_image" = "yes"; then
    130 # checking for SDL_image-headers
    131   AC_CHECK_HEADERS(SDL/SDL_image.h ,,
    132       [echo "sdl_image not found. falling back to other options"; def_sdl_image=no ])
    133 fi
    134 if test "$def_sdl_image" = "yes"; then
    135 # checking for SDL_image-lib
    136   AC_CHECK_LIB([SDL_image], [main], FOUND_SDL_image=yes)
    137      if test "$FOUND_SDL_image" = "yes" ; then
    138        LIBS="$LIBS -lSDL_image"
    139      else
    140         echo "------------------"
    141         echo "SDL_image library not found."
    142         echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
    143         echo "------------------"
    144         exit -1
    145      fi   
    146 fi
    147128    ;;
    148129
     
    200181     fi   
    201182
    202 ## check for SDL_Image
    203 if test "$def_sdl_image" = "yes"; then
    204 # checking for SDL_image-headers
    205   AC_CHECK_HEADERS(SDL/SDL_image.h ,,
    206       [echo "sdl_image not found. falling back to other options"; def_sdl_image=no ])
    207 fi
    208 if test "$def_sdl_image" = "yes"; then
    209 # checking for SDL_image-lib
    210   AC_CHECK_LIB([SDL_image], [main], FOUND_SDL_image=yes)
    211      if test "$FOUND_SDL_image" = "yes" ; then
    212        LIBS="$LIBS -lSDL_image"
    213      else
    214         echo "------------------"
    215         echo "SDL_image library not found."
    216         echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
    217         echo "------------------"
    218         exit -1
    219      fi   
    220 fi
    221183
    222184## checking for SDL
     
    269231
    270232AC_SUBST(MSBITFIELDS)
     233
     234## check for SDL_Image
     235if test "$def_sdl_image" = "yes"; then
     236# checking for SDL_image-headers
     237  AC_CHECK_HEADERS(SDL/SDL_image.h ,,
     238      [echo "sdl_image not found. falling back to other options"; def_sdl_image=no ])
     239fi
     240if test "$def_sdl_image" = "yes"; then
     241# checking for SDL_image-lib
     242  AC_CHECK_LIB([SDL_image], [main], FOUND_SDL_image=yes)
     243     if test "$FOUND_SDL_image" = "yes" ; then
     244       LIBS="$LIBS -lSDL_image"
     245     else
     246        echo "------------------"
     247        echo "SDL_image library not found."
     248        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
     249        echo "------------------"
     250        exit -1
     251     fi   
     252fi
     253
    271254
    272255if test "$def_sdl_image" = "no"; then
Note: See TracChangeset for help on using the changeset viewer.