Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 19, 2006, 3:07:09 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better debug names
As DEBUG and ERROR are already given to windows.h and other files:
DEBUG is renamed to DEBUG_LEVEL
and all
NO, ERR, WARN, INFO, DEBUG, vDEBUG
are renamed to
ORX_NONE, ORX_ERR, ORX_WARN, ORX_INFO, ORX_DEBUG, ORX_vDEBUG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r7669 r7729  
    8686# DEBUG-statement #
    8787#-----------------#
    88 DEBUG=no
     88DEBUG_LEVEL=no
    8989AC_MSG_CHECKING([if DEBUG-mode should be enabled])
    9090AC_ARG_ENABLE([debug],
    9191        AS_HELP_STRING(--enable-debug,compiles in debug mode. Lots of debug info about the game.),
    92          DEBUG=$enableval)
    93 
    94 if test x$DEBUG = xno; then
     92         DEBUG_LEVEL=$enableval)
     93
     94if test x$DEBUG_LEVEL = xno; then
    9595        echo "no"
    9696        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
    97         DEBUG=4
    98 elif test x$DEBUG = xyes; then
     97        DEBUG_LEVEL=4
     98elif test x$DEBUG_LEVEL = xyes; then
    9999        echo "yes"
    100100        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
    101         DEBUG=4
     101        DEBUG_LEVEL=4
    102102else
    103   if test x$DEBUG = x0 || test x$DEBUG = x1 || test x$DEBUG = x2 || test x$DEBUG = x3 || test x$DEBUG = x4 || test x$DEBUG = x5 ; then
    104         echo "yes: setting debuglevel to to $DEBUG"
     103  if test x$DEBUG_LEVEL = x0 || test x$DEBUG_LEVEL = x1 || test x$DEBUG_LEVEL = x2 || test x$DEBUG_LEVEL = x3 || test x$DEBUG_LEVEL = x4 || test x$DEBUG_LEVEL = x5 ; then
     104        echo "yes: setting debuglevel to to $DEBUG_LEVEL"
    105105  else
    106         echo "yes: invalid Value for Debug ($DEBUG). setting to 4(DEBUG)"
    107         DEBUG=4
     106        echo "yes: invalid Value for Debug ($DEBUG_LEVEL). setting to 4(DEBUG)"
     107        DEBUG_LEVEL=4
    108108  fi
    109109fi
    110110
    111 if test $DEBUD > 3 ; then
     111if test $DEBUD_LEVEL > 3 ; then
    112112  CPPFLAGS="${CPPFLAGS} -g"
    113113fi
    114 AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are])
    115 AC_SUBST(DEBUG)
     114AC_DEFINE_UNQUOTED(DEBUG_LEVEL, ${DEBUG_LEVEL}, [in which debug mode we are])
     115AC_SUBST(DEBUG_LEVEL)
    116116
    117117#---------------#
Note: See TracChangeset for help on using the changeset viewer.