Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 8, 2005, 2:17:00 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: small diffs

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#                                                                        #
    66#   This program is free software; you can redistribute it and/or modify #
    77#   it under the terms of the GNU General Public License as published by #
    88#   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.                    #
    1616#   Please edit this file only, if you exactly know what you are doing.  #
    1717#   It is quite fragile, and compiling orxonox on different Platforms    #
     
    5151DEBUG=no
    5252AC_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         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
     53AC_ARG_ENABLE([debug],
     54        AC_HELP_STRING( [--enable-debug], [compiles in debug mode. Lots of debug info about the game.]),
     55        DEBUG=$enableval)
     56
     57if 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
    6161elif test x$DEBUG = xyes; then
    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])
     62        echo "yes"
     63        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
     64        DEBUG=4
     65else
     66        echo "yes: setting debuglevel to to $DEBUG"
     67fi
     68        AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are])
    6969
    7070AC_SUBST(DEBUG)
     
    7575MODULAR_DEBUG=yes
    7676AC_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         MODULAR_DEBUG=$enableval)
    80 
    81 if test x$MODULAR_DEBUG = xno; then 
    82         echo "no"
     77AC_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
     81if test x$MODULAR_DEBUG = xno; then
     82        echo "no"
    8383elif test x$MODULAR_DEBUG = xyes; then
    84         echo "yes"
    85         AC_DEFINE_UNQUOTED(MODULAR_DEBUG, 1, [if Modular-DUBUG mode is enabled])
     84        echo "yes"
     85        AC_DEFINE_UNQUOTED(MODULAR_DEBUG, 1, [if Modular-DUBUG mode is enabled])
    8686fi
    8787
     
    9090#--------------#
    9191AC_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 
     92AC_ARG_WITH([gtk],
     93        AC_HELP_STRING( [--without-gtk],
     94        [Prevents GTK from being loaded]), [def_gtk=no], [def_gtk=yes])
     95if test x$def_gtk = xyes; then
    9696  echo "yes"
    97 fi 
    98 if test x$def_gtk = xno; then 
     97fi
     98if test x$def_gtk = xno; then
    9999  echo "no"
    100100fi
     
    104104#------------------#
    105105AC_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 
     106AC_ARG_WITH([curl],
     107        AC_HELP_STRING( [--without-curl],
     108        [Prevents libcURL from being loaded]), [def_curl=no], [def_curl=yes])
     109if test x$def_curl = xyes; then
    110110  echo "yes"
    111 fi 
    112 if test x$def_curl = xno; then 
     111fi
     112if test x$def_curl = xno; then
    113113  echo "no"
    114114fi
     
    119119def_sub_projects=no
    120120AC_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])
     121AC_ARG_ENABLE([sub-projects],
     122        AC_HELP_STRING( [--enable-sub-projects],
     123        [also builds the subProjects while make from srcdir]), [def_sub_projects=yes])
    124124if test x$def_sub_projects = xyes; then
    125125  echo "yes"
    126 fi 
     126fi
    127127if test x$def_sub_projects = xno; then
    128128  echo "no"
     
    135135def_profiling=no
    136136AC_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])
     137AC_ARG_ENABLE([profile],
     138        AC_HELP_STRING( [--enable-profile],
     139        [builds orxonox with profiling support]), [def_profiling=yes])
    140140if test x$def_profiling = xyes; then
    141141  echo "yes"
    142142  CXXFLAGS="$CXXFLAGS -pg"
    143 fi 
     143fi
    144144if test x$def_profiling = xno; then
    145145  echo "no"
     
    151151def_efence=no
    152152AC_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])
     153AC_ARG_ENABLE([efence],
     154        AC_HELP_STRING( [--enable-efence],
     155        [builds orxonox with efence support]), [def_efence=yes])
    156156if test x$def_efence = xyes; then
    157157  echo "yes"
    158 fi 
     158fi
    159159if test x$def_efence = xno; then
    160160  echo "no"
     
    166166def_documentation=no
    167167AC_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])
     168AC_ARG_ENABLE([documentation],
     169        AC_HELP_STRING( [--enable-documentation],
     170        [also builds the sDocumentation while make from srcdir]), [def_documentation=yes])
    171171if test x$def_documentation = xyes; then
    172172  echo "yes"
    173 fi 
     173fi
    174174if test x$def_documentation = xno; then
    175175  echo "no"
     
    222222
    223223# checking gl header
    224         #done before loop
     224        #done before loop
    225225
    226226# checking gl header
     
    230230    AC_CHECK_LIB([opengl32], [main], FOUND_opengl32=yes, "gl/gl.h")
    231231    if test x$FOUND_opengl32 = xyes ; then
    232         LIBS="$LIBS -lopengl32"
     232        LIBS="$LIBS -lopengl32"
    233233    else
    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
     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
    239239    fi
    240240
     
    246246    AC_CHECK_LIB([glu32], [main], FOUND_glu32=yes)
    247247    if test x$FOUND_glu32 = xyes ; then
    248         LIBS="$LIBS -lGLU32"
     248        LIBS="$LIBS -lGLU32"
    249249    else
    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
     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
    255255    fi
    256256
    257257# checking for mingw32
    258258    AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes)
    259     if test x$FOUND_mingw32 = xyes; then 
    260         LIBS="$LIBS -lmingw32"
     259    if test x$FOUND_mingw32 = xyes; then
     260        LIBS="$LIBS -lmingw32"
    261261    fi
    262262# checking for SDL-headers
     
    306306     LIBS="$LIBS -lGL"
    307307   else
    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
     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
    313313   fi
    314314
     
    321321      LIBS="$LIBS -lGLU"
    322322    else
    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   
     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
    329329
    330330# checking for SDL-headers
     
    339339        echo "------------------"
    340340        echo "SDL library not found."
    341         echo "please install the SDL library, which can be found at http://www.libsdl.org"
     341        echo "please install the SDL library, which can be found at http://www.libsdl.org"
    342342        echo "------------------"
    343343        exit -1
    344      fi   
     344     fi
    345345
    346346
     
    415415        echo "------------------"
    416416        echo "openal library not found."
    417         echo "please install the openal library, which can be found at http://www.openal.org"
     417        echo "please install the openal library, which can be found at http://www.openal.org"
    418418        echo "------------------"
    419419        exit -1
     
    433433        echo "------------------"
    434434        echo "ogg library not found."
    435         echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     435        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    436436        echo "------------------"
    437437        exit -1
     
    448448        echo "------------------"
    449449        echo "vorbis library not found."
    450         echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     450        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    451451        echo "------------------"
    452452        exit -1
     
    466466        echo "------------------"
    467467        echo "vorbisfile library not found."
    468         echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     468        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    469469        echo "------------------"
    470470        exit -1
     
    485485        echo "------------------"
    486486        echo "SDL_ttf library not found."
    487         echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
     487        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
    488488        echo "------------------"
    489489        exit -1
    490      fi   
     490     fi
    491491
    492492
     
    512512# GTK #
    513513#-----#
    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
     514if 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
    530530
    531531fi
     
    537537# libcURL #
    538538#---------#
    539 if test x$def_curl = xyes; then 
     539if test x$def_curl = xyes; then
    540540
    541541 AC_CHECK_HEADERS([curl/curl.h], [curlHeader="yes"], [curlHeader="no"])
     
    563563      LIBS="$LIBS -lefence"
    564564   fi
    565  
     565
    566566fi
    567567
     
    569569 AC_CHECK_LIB([m], [main])
    570570
    571  
     571
    572572# Checks for header files.
    573573AC_HEADER_STDC
     
    586586AC_CONFIG_FILES([Makefile
    587587                 src/Makefile
    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
     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
    597597                 src/lib/tinyxml/Makefile
    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                 ])
     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                ])
    605605
    606606AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.