Changeset 4697 in orxonox.OLD for orxonox/trunk/configure.ac
- Timestamp:
- Jun 25, 2005, 11:41:14 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure.ac
r4672 r4697 221 221 MWINDOWS="-mwindows" 222 222 223 # checking gl header 224 #done before loop 225 223 224 225 # checking for mingw32 226 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) 227 if test x$FOUND_mingw32 = xyes; then 228 LIBS="$LIBS -lmingw32" 229 fi 230 231 #-----------# 232 # SDL (win) # 233 #-----------# 234 # checking for SDL-headers 235 AC_CHECK_HEADERS([SDL/SDL.h] ,, 236 [AC_MSG_ERROR([cannot find SDL headers]) ]) 237 238 #checking for libSDL 239 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes) 240 if test x$FOUND_sdlmain = xyes ; then 241 LIBS="$LIBS -lsdlmain" 242 else 243 echo "------------------" 244 echo "SDL library not found." 245 echo "please install the SDL library, which can be found at http://www.libsdl.org" 246 echo "------------------" 247 exit 1 248 fi 249 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes) 250 if test x$FOUND_sdl = xyes ; then 251 LIBS="$LIBS -lsdl" 252 else 253 echo "------------------" 254 echo "SDL library not found." 255 echo "please install the SDL library, which can be found at http://www.libsdl.org" 256 echo "------------------" 257 exit -1 258 fi 259 260 #---------------# 261 # open-GL (win) # 262 #---------------# 226 263 # checking gl header 227 264 AC_CHECK_HEADERS(GL/gl.h ,, … … 255 292 fi 256 293 257 # checking for mingw32 258 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) 259 if test x$FOUND_mingw32 = xyes; then 260 LIBS="$LIBS -lmingw32" 261 fi 262 # checking for SDL-headers 263 AC_CHECK_HEADERS([SDL/SDL.h] ,, 264 [AC_MSG_ERROR([cannot find SDL headers]) ]) 265 266 #checking for libSDL 267 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes) 268 if test x$FOUND_sdlmain = xyes ; then 269 LIBS="$LIBS -lsdlmain" 270 else 271 echo "------------------" 272 echo "SDL library not found." 273 echo "please install the SDL library, which can be found at http://www.libsdl.org" 274 echo "------------------" 275 exit 1 276 fi 277 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes) 278 if test x$FOUND_sdl = xyes ; then 279 LIBS="$LIBS -lsdl" 280 else 281 echo "------------------" 282 echo "SDL library not found." 283 echo "please install the SDL library, which can be found at http://www.libsdl.org" 294 #--------# 295 # openAL # 296 #--------# 297 # checking for openAL-headers 298 AC_CHECK_HEADERS([AL/al.h] ,, 299 [AC_MSG_ERROR([cannot find openAL header.])]) 300 # checking for openAL-lib 301 AC_CHECK_LIB([OpenAL32], [main], [FOUND_openal=yes]) 302 AC_CHECK_LIB([ALut], [main], [FOUND_ALut=yes]) 303 if test x$FOUND_openal = xyes ; then 304 if test x$FOUND_ALut = xyes ; then 305 LIBS="$LIBS -lALut -lOpenAL32" 306 else 307 echo "------------------" 308 echo "openal library not found." 309 echo "please install the openal library, which can be found at http://www.openal.org" 284 310 echo "------------------" 285 311 exit -1 286 fi287 312 fi 313 fi 288 314 ;; 289 315 #-------# … … 327 353 exit -1 328 354 fi 355 356 #--------# 357 # openAL # 358 #--------# 359 # checking for openAL-headers 360 AC_CHECK_HEADERS([AL/al.h] ,, 361 [AC_MSG_ERROR([cannot find openAL header.])]) 362 # checking for openAL-lib 363 AC_CHECK_LIB([openal], [main], [FOUND_openal=yes]) 364 if test x$FOUND_openal = xyes ; then 365 LIBS="$LIBS -lopenal" 366 else 367 echo "------------------" 368 echo "openal library not found." 369 echo "please install the openal library, which can be found at http://www.openal.org" 370 echo "------------------" 371 exit -1 372 fi 329 373 330 374 # checking for SDL … … 397 441 [AC_CHECK_HEADERS([SDL/SDL_ttf.h] ,,AC_MSG_ERROR([cannot find SDL_ttf header.])])) 398 442 # checking for SDL_ttf-lib 399 AC_CHECK_LIB([SDL_ttf], [ main], [FOUND_SDL_ttf=yes])443 AC_CHECK_LIB([SDL_ttf], [TTF_OpenFont], [FOUND_SDL_ttf=yes]) 400 444 if test x$FOUND_SDL_ttf = xyes ; then 401 445 LIBS="$LIBS -lSDL_ttf" … … 427 471 fi 428 472 429 #--------#430 # openAL #431 #--------#432 # checking for openAL-headers433 AC_CHECK_HEADERS([AL/al.h] ,,434 [AC_MSG_ERROR([cannot find openAL header.])])435 # checking for openAL-lib436 AC_CHECK_LIB([openal], [main], [FOUND_openal=yes])437 if test x$FOUND_openal = xyes ; then438 LIBS="$LIBS -lopenal"439 else440 echo "------------------"441 echo "openal library not found."442 echo "please install the openal library, which can be found at http://www.openal.org"443 echo "------------------"444 exit -1445 fi446 447 473 #-----# 448 474 # ogg # 449 475 #-----# 450 # checking for ogg-headers451 AC_CHECK_HEADERS([ogg/ogg.h] ,,452 [AC_MSG_ERROR([cannot find ogg header.])])453 # checking for ogg-lib454 AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])455 if test x$FOUND_ogg = xyes ; then456 LIBS="$LIBS -logg"457 else458 echo "------------------"459 echo "ogg library not found."460 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"461 echo "------------------"462 exit -1463 fi476 ## checking for ogg-headers 477 # AC_CHECK_HEADERS([ogg/ogg.h] ,, 478 # [AC_MSG_ERROR([cannot find ogg header.])]) 479 ## checking for ogg-lib 480 # AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes]) 481 # if test x$FOUND_ogg = xyes ; then 482 # LIBS="$LIBS -logg" 483 # else 484 # echo "------------------" 485 # echo "ogg library not found." 486 # echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 487 # echo "------------------" 488 # exit -1 489 # fi 464 490 465 491 #--------# 466 492 # vorbis # 467 493 #--------# 468 # checking for vorbis-lib469 AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])470 if test x$FOUND_vorbis = xyes ; then471 LIBS="$LIBS -lvorbis"472 else473 echo "------------------"474 echo "vorbis library not found."475 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"476 echo "------------------"477 exit -1478 fi494 ## checking for vorbis-lib 495 # AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes]) 496 # if test x$FOUND_vorbis = xyes ; then 497 # LIBS="$LIBS -lvorbis" 498 # else 499 # echo "------------------" 500 # echo "vorbis library not found." 501 # echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 502 # echo "------------------" 503 # exit -1 504 # fi 479 505 480 506 #------------# 481 507 # vorbisfile # 482 508 #------------# 483 # checking for vorbis-headers484 AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,485 [AC_MSG_ERROR([cannot find vorbisfile header.])])486 # checking for vorbisfile-lib487 AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])488 if test x$FOUND_vorbisfile = xyes ; then489 LIBS="$LIBS -lvorbisfile"490 else491 echo "------------------"492 echo "vorbisfile library not found."493 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"494 echo "------------------"495 exit -1496 fi509 ## checking for vorbis-headers 510 # AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,, 511 # [AC_MSG_ERROR([cannot find vorbisfile header.])]) 512 ## checking for vorbisfile-lib 513 # AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes]) 514 # if test x$FOUND_vorbisfile = xyes ; then 515 # LIBS="$LIBS -lvorbisfile" 516 # else 517 # echo "------------------" 518 # echo "vorbisfile library not found." 519 # echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 520 # echo "------------------" 521 # exit -1 522 # fi 497 523 498 524 #-----#
Note: See TracChangeset
for help on using the changeset viewer.