From: <kev...@us...> - 2003-10-29 21:59:18
|
Update of /cvsroot/bidwatcher/bidwatcher In directory sc8-pr-cvs1:/tmp/cvs-serv5190 Modified Files: Tag: STABLE_1_3 bidwatcher.h configure.in Log Message: Fixed the debug macro check Turned off warning if we don't do debugging Added --enable-debug to configure script Index: bidwatcher.h =================================================================== RCS file: /cvsroot/bidwatcher/bidwatcher/Attic/bidwatcher.h,v retrieving revision 1.74.2.7 retrieving revision 1.74.2.8 diff -u -d -r1.74.2.7 -r1.74.2.8 --- bidwatcher.h 29 Oct 2003 05:40:03 -0000 1.74.2.7 +++ bidwatcher.h 29 Oct 2003 21:59:10 -0000 1.74.2.8 @@ -80,10 +80,12 @@ #if !defined (__DECCXX) // no, ok, output a warning message letting the usr know whether // or not debugging is on or off. -# if defined DEBUGGING > 0 +// We should be quiet for general usage and not bother the general user with +// scary warnings. +# if (DEBUGGING > 0) # warning DEBUGGING is on. # else -# warning DEBUGGING is off. +//# warning DEBUGGING is off. # endif #endif Index: configure.in =================================================================== RCS file: /cvsroot/bidwatcher/bidwatcher/configure.in,v retrieving revision 1.22.2.1 retrieving revision 1.22.2.2 diff -u -d -r1.22.2.1 -r1.22.2.2 --- configure.in 29 Oct 2003 18:35:17 -0000 1.22.2.1 +++ configure.in 29 Oct 2003 21:59:10 -0000 1.22.2.2 @@ -39,4 +39,18 @@ AC_CHECK_HEADERS([fstream fstream.h], break) AC_CHECK_HEADERS([sstream strstream.h], break) +AC_ARG_ENABLE(debug, + AC_HELP_STRING([--enable-debug], [Enable noisy debugging code]), + [use_debug=$enableval], [use_debug=no]) + +if test "$use_debug" != "no" ; then + if test "$use_debug" = "yes" ; then + #Default debugging level + AC_DEFINE([DEBUGGING], 10, [Debugging level]) + else + #It's not the default, so we must have a value + AC_DEFINE_UNQUOTED([DEBUGGING], $use_debug, [Debugging level]) + fi +fi + AC_OUTPUT(Makefile pixmaps/Makefile,echo timestamp > stamp-h) |