Changeset 3140 in orxonox.OLD for orxonox/trunk/configure.ac
- Timestamp:
- Dec 10, 2004, 7:44:36 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure.ac
r3101 r3140 20 20 AC_PROG_CXX 21 21 AC_HEADER_STDC 22 23 22 24 23 ### CHECKING OPTIONAT ARGUMENTS … … 35 34 echo "no" 36 35 fi 37 38 36 ### SDL_image-disable 37 def_sdl_image=yes 38 AC_MSG_CHECKING([if SDL_image should be enabled]) 39 AC_ARG_ENABLE([sdl_image], 40 AC_HELP_STRING( [--disabel-sdl-image], 41 [Prevents SDL_image from being loaded]), [def_sdl_image=no]) 42 if test "$def_sdl_image" = yes; then 43 echo "yes" 44 fi 45 if test "$def_sdl_image" = no; then 46 echo "no" 47 fi 39 48 40 49 ### CHECKING FOR SYSTEM ### … … 116 125 fi 117 126 118 119 127 ;; 120 128 … … 160 168 [AC_MSG_ERROR([cannot find SDL headers]) ]) 161 169 162 # checking for SDL-lib s170 # checking for SDL-lib 163 171 AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes) 164 172 if test "$FOUND_SDL" = "yes" ; then … … 171 179 exit -1 172 180 fi 181 173 182 174 183 ## checking for SDL … … 188 197 osX="yes" 189 198 199 CPPFLAGS="-I/sw/include $CPPFLAGS" 190 200 # checking gl header 191 201 AC_CHECK_HEADERS(OpenGL/gl.h ,, … … 212 222 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 213 223 LIBS="$LIBS $SDL_LIBS" 224 214 225 ;; 215 226 … … 220 231 AC_SUBST(MSBITFIELDS) 221 232 222 223 233 ## check for SDL_Image 234 if 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 ]) 238 fi 239 if 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 251 fi 252 253 254 if 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 290 fi 224 291 225 292 ## checking for GTK
Note: See TracChangeset
for help on using the changeset viewer.