Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 17, 2004, 7:27:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: DEBUG implemented in the configure-files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r3197 r3205  
    2626AC_MSG_CHECKING([if DEBUG-mode should be enabled])
    2727AC_ARG_ENABLE([debug],
    28         AC_HELP_STRING( [--enable-debug], [compiles GTK in debug mode. Lots of Debug info about the game]),
    29          [DEBUG=yes])
    30 echo "$DEBUG"
    31 if test "$DEBUG" = yes; then
    32         AC_DEFINE_UNQUOTED(DEBUG, 1, [if we ar in Debug Mode])
    33 fi
     28        AC_HELP_STRING( [--enable-debug], [compiles in debug mode. Lots of debug info about the game.]),
     29         DEBUG=$enableval)
     30
     31if test "$DEBUG" = "no"; then
     32        echo "no"
     33        echo " -> Setting debuglevel to 1. Like this you can still see errors."
     34        DEBUG=1
     35elif test "$DEBUG" = yes; then
     36        echo "yes"
     37        echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!."
     38        DEBUG=3
     39else       
     40        echo "yes set to $DEBUG"
     41fi
     42        AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are])
     43
    3444AC_SUBST(DEBUG)
    3545
    3646
    3747## GTK-disabled
    38 def_gtk=yes
    3948AC_MSG_CHECKING([if gtk should be enabled])
    4049AC_ARG_WITH([gtk],
    4150        AC_HELP_STRING( [--without-gtk],
    42         [Prevents GTK from being loaded]), [def_gtk=no])
     51        [Prevents GTK from being loaded]), [def_gtk=no], [def_gtk=yes])
    4352if test "$def_gtk" = yes; then
    4453  echo "yes"
Note: See TracChangeset for help on using the changeset viewer.