Changeset 4555 in orxonox.OLD for orxonox/trunk/configure.ac
- Timestamp:
- Jun 8, 2005, 2:17:00 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure.ac
r4529 r4555 1 ########################################################################## 2 # orxonox - the future of 3D-vertical-scrollers 3 # 4 # Copyright (C) 2004 orx 5 # 1 ########################################################################## 2 # orxonox - the future of 3D-vertical-scrollers # 3 # # 4 # Copyright (C) 2004 orx # 5 # # 6 6 # This program is free software; you can redistribute it and/or modify # 7 7 # it under the terms of the GNU General Public License as published by # 8 8 # the Free Software Foundation; either version 2, or (at your option) # 9 # any later version. 10 # 11 # ### File Specific: 12 # main-programmer: Benjamin Grauer 13 # co-programmer: ... 14 # 15 # This is the main configuration File of autoconf. 9 # any later version. # 10 # # 11 # ### File Specific: # 12 # main-programmer: Benjamin Grauer # 13 # co-programmer: ... # 14 # # 15 # This is the main configuration File of autoconf. # 16 16 # Please edit this file only, if you exactly know what you are doing. # 17 17 # It is quite fragile, and compiling orxonox on different Platforms # … … 51 51 DEBUG=no 52 52 AC_MSG_CHECKING([if DEBUG-mode should be enabled]) 53 AC_ARG_ENABLE([debug], 54 AC_HELP_STRING([--enable-debug], [compiles in debug mode. Lots of debug info about the game.]),55 56 57 if test x$DEBUG = xno; then 58 59 60 53 AC_ARG_ENABLE([debug], 54 AC_HELP_STRING( [--enable-debug], [compiles in debug mode. Lots of debug info about the game.]), 55 DEBUG=$enableval) 56 57 if test x$DEBUG = xno; then 58 echo "no" 59 echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." 60 DEBUG=4 61 61 elif test x$DEBUG = xyes; then 62 63 64 65 else 66 67 fi 68 62 echo "yes" 63 echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." 64 DEBUG=4 65 else 66 echo "yes: setting debuglevel to to $DEBUG" 67 fi 68 AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are]) 69 69 70 70 AC_SUBST(DEBUG) … … 75 75 MODULAR_DEBUG=yes 76 76 AC_MSG_CHECKING([if Modular-DEBUG-mode should be ebabled]) 77 AC_ARG_ENABLE([modular-debug], 78 AC_HELP_STRING([--disable-modular-debug], [compiles in modular-debug mode, that logs differently on the many modules of orxonox.]),79 80 81 if test x$MODULAR_DEBUG = xno; then 82 77 AC_ARG_ENABLE([modular-debug], 78 AC_HELP_STRING( [--disable-modular-debug], [compiles in modular-debug mode, that logs differently on the many modules of orxonox.]), 79 MODULAR_DEBUG=$enableval) 80 81 if test x$MODULAR_DEBUG = xno; then 82 echo "no" 83 83 elif test x$MODULAR_DEBUG = xyes; then 84 85 84 echo "yes" 85 AC_DEFINE_UNQUOTED(MODULAR_DEBUG, 1, [if Modular-DUBUG mode is enabled]) 86 86 fi 87 87 … … 90 90 #--------------# 91 91 AC_MSG_CHECKING([if gtk should be enabled]) 92 AC_ARG_WITH([gtk], 93 AC_HELP_STRING( [--without-gtk], 94 [Prevents GTK from being loaded]), [def_gtk=no], [def_gtk=yes]) 95 if test x$def_gtk = xyes; then 92 AC_ARG_WITH([gtk], 93 AC_HELP_STRING( [--without-gtk], 94 [Prevents GTK from being loaded]), [def_gtk=no], [def_gtk=yes]) 95 if test x$def_gtk = xyes; then 96 96 echo "yes" 97 fi 98 if test x$def_gtk = xno; then 97 fi 98 if test x$def_gtk = xno; then 99 99 echo "no" 100 100 fi … … 104 104 #------------------# 105 105 AC_MSG_CHECKING([if libcURL should be enabled]) 106 AC_ARG_WITH([curl], 107 AC_HELP_STRING( [--without-curl], 108 [Prevents libcURL from being loaded]), [def_curl=no], [def_curl=yes]) 109 if test x$def_curl = xyes; then 106 AC_ARG_WITH([curl], 107 AC_HELP_STRING( [--without-curl], 108 [Prevents libcURL from being loaded]), [def_curl=no], [def_curl=yes]) 109 if test x$def_curl = xyes; then 110 110 echo "yes" 111 fi 112 if test x$def_curl = xno; then 111 fi 112 if test x$def_curl = xno; then 113 113 echo "no" 114 114 fi … … 119 119 def_sub_projects=no 120 120 AC_MSG_CHECKING([if the SubProjects should be built]) 121 AC_ARG_ENABLE([sub-projects], 122 AC_HELP_STRING( [--enable-sub-projects], 123 [also builds the subProjects while make from srcdir]), [def_sub_projects=yes]) 121 AC_ARG_ENABLE([sub-projects], 122 AC_HELP_STRING( [--enable-sub-projects], 123 [also builds the subProjects while make from srcdir]), [def_sub_projects=yes]) 124 124 if test x$def_sub_projects = xyes; then 125 125 echo "yes" 126 fi 126 fi 127 127 if test x$def_sub_projects = xno; then 128 128 echo "no" … … 135 135 def_profiling=no 136 136 AC_MSG_CHECKING([if Profiling should be enabled]) 137 AC_ARG_ENABLE([profile], 138 AC_HELP_STRING( [--enable-profile], 139 [builds orxonox with profiling support]), [def_profiling=yes]) 137 AC_ARG_ENABLE([profile], 138 AC_HELP_STRING( [--enable-profile], 139 [builds orxonox with profiling support]), [def_profiling=yes]) 140 140 if test x$def_profiling = xyes; then 141 141 echo "yes" 142 142 CXXFLAGS="$CXXFLAGS -pg" 143 fi 143 fi 144 144 if test x$def_profiling = xno; then 145 145 echo "no" … … 151 151 def_efence=no 152 152 AC_MSG_CHECKING([if efence should be enabled]) 153 AC_ARG_ENABLE([efence], 154 AC_HELP_STRING( [--enable-efence], 155 [builds orxonox with efence support]), [def_efence=yes]) 153 AC_ARG_ENABLE([efence], 154 AC_HELP_STRING( [--enable-efence], 155 [builds orxonox with efence support]), [def_efence=yes]) 156 156 if test x$def_efence = xyes; then 157 157 echo "yes" 158 fi 158 fi 159 159 if test x$def_efence = xno; then 160 160 echo "no" … … 166 166 def_documentation=no 167 167 AC_MSG_CHECKING([if the Documentation should be build by default]) 168 AC_ARG_ENABLE([documentation], 169 AC_HELP_STRING( [--enable-documentation], 170 [also builds the sDocumentation while make from srcdir]), [def_documentation=yes]) 168 AC_ARG_ENABLE([documentation], 169 AC_HELP_STRING( [--enable-documentation], 170 [also builds the sDocumentation while make from srcdir]), [def_documentation=yes]) 171 171 if test x$def_documentation = xyes; then 172 172 echo "yes" 173 fi 173 fi 174 174 if test x$def_documentation = xno; then 175 175 echo "no" … … 222 222 223 223 # checking gl header 224 224 #done before loop 225 225 226 226 # checking gl header … … 230 230 AC_CHECK_LIB([opengl32], [main], FOUND_opengl32=yes, "gl/gl.h") 231 231 if test x$FOUND_opengl32 = xyes ; then 232 232 LIBS="$LIBS -lopengl32" 233 233 else 234 235 236 237 238 234 echo "------------------" 235 echo "opengl not found." 236 echo "please install the opengl package which can be found at http://www.opengl.org" 237 echo "------------------" 238 exit -1 239 239 fi 240 240 … … 246 246 AC_CHECK_LIB([glu32], [main], FOUND_glu32=yes) 247 247 if test x$FOUND_glu32 = xyes ; then 248 248 LIBS="$LIBS -lGLU32" 249 249 else 250 251 252 253 254 250 echo "------------------" 251 echo "GLU library not found." 252 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 253 echo "------------------" 254 exit -1 255 255 fi 256 256 257 257 # checking for mingw32 258 258 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) 259 if test x$FOUND_mingw32 = xyes; then 260 259 if test x$FOUND_mingw32 = xyes; then 260 LIBS="$LIBS -lmingw32" 261 261 fi 262 262 # checking for SDL-headers … … 306 306 LIBS="$LIBS -lGL" 307 307 else 308 309 310 311 312 308 echo "------------------" 309 echo "opengl not found." 310 echo "please install the opengl package which can be found at http://www.opengl.org" 311 echo "------------------" 312 exit -1 313 313 fi 314 314 … … 321 321 LIBS="$LIBS -lGLU" 322 322 else 323 324 325 326 327 328 fi 323 echo "------------------" 324 echo "GLU library not found." 325 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 326 echo "------------------" 327 exit -1 328 fi 329 329 330 330 # checking for SDL-headers … … 339 339 echo "------------------" 340 340 echo "SDL library not found." 341 341 echo "please install the SDL library, which can be found at http://www.libsdl.org" 342 342 echo "------------------" 343 343 exit -1 344 fi 344 fi 345 345 346 346 … … 415 415 echo "------------------" 416 416 echo "openal library not found." 417 417 echo "please install the openal library, which can be found at http://www.openal.org" 418 418 echo "------------------" 419 419 exit -1 … … 433 433 echo "------------------" 434 434 echo "ogg library not found." 435 435 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 436 436 echo "------------------" 437 437 exit -1 … … 448 448 echo "------------------" 449 449 echo "vorbis library not found." 450 450 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 451 451 echo "------------------" 452 452 exit -1 … … 466 466 echo "------------------" 467 467 echo "vorbisfile library not found." 468 468 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 469 469 echo "------------------" 470 470 exit -1 … … 485 485 echo "------------------" 486 486 echo "SDL_ttf library not found." 487 487 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 488 488 echo "------------------" 489 489 exit -1 490 fi 490 fi 491 491 492 492 … … 512 512 # GTK # 513 513 #-----# 514 if test x$def_gtk = xyes; then 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 514 if test x$def_gtk = xyes; then 515 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 516 AC_MSG_CHECKING([for gtk2.0]) 517 if `$PKG_CONFIG --exists gtk+-2.0`; then 518 echo "yes" 519 have_gtk2=yes 520 GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 521 GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 522 AC_DEFINE_UNQUOTED(HAVE_GTK2, 1, [if we have GTK2]) 523 if test $DEBUG -ge 3; then 524 echo "cflags: $GTK2_CFLAGS" 525 echo "libs: $GTK2_LIBS" 526 fi 527 else 528 echo "no" 529 fi 530 530 531 531 fi … … 537 537 # libcURL # 538 538 #---------# 539 if test x$def_curl = xyes; then 539 if test x$def_curl = xyes; then 540 540 541 541 AC_CHECK_HEADERS([curl/curl.h], [curlHeader="yes"], [curlHeader="no"]) … … 563 563 LIBS="$LIBS -lefence" 564 564 fi 565 565 566 566 fi 567 567 … … 569 569 AC_CHECK_LIB([m], [main]) 570 570 571 571 572 572 # Checks for header files. 573 573 AC_HEADER_STDC … … 586 586 AC_CONFIG_FILES([Makefile 587 587 src/Makefile 588 589 590 591 592 593 594 595 596 588 src/lib/Makefile 589 src/lib/graphics/Makefile 590 src/lib/graphics/importer/Makefile 591 src/lib/sound/Makefile 592 src/lib/event/Makefile 593 src/lib/physics/Makefile 594 src/lib/particles/Makefile 595 src/lib/collision_detection/Makefile 596 src/lib/gui/Makefile 597 597 src/lib/tinyxml/Makefile 598 599 600 601 602 603 604 598 src/subprojects/Makefile 599 src/subprojects/testmain/Makefile 600 src/subprojects/importer/Makefile 601 src/subprojects/particles/Makefile 602 src/subprojects/collision_detection/Makefile 603 src/subprojects/gui/Makefile 604 ]) 605 605 606 606 AC_OUTPUT
Note: See TracChangeset
for help on using the changeset viewer.