[Freeciv-Dev] Re: (PR#2746) Include debug setting in config.h
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Jan 07, 2003 at 03:55:32AM -0800, Raimar Falke via RT wrote:
> On Tue, Dec 24, 2002 at 02:34:15PM +0000, Per I. Mathisen wrote:
> > On Tue, 24 Dec 2002, Christian Knoke wrote:
> > > How can I get 'experimental' AIs? I recompiled with debug==yes, and
> > > started civserver with debug 3, with no avail.
> >
> > Make sure you recompile stdinhand.o (by deleting this file before
> > recompile).
> >
> > # rm server/stdinhand.o; ./autogen.sh --with-debug=yes && make
> >
> > should suffice. Then
> >
> > /create chris
> > /experi chris
> >
> > should do the job.
>
> This is necessary because we don't include the debug setting in
> config.h (which we should). A patch should be easy.
And the patch.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
Two OS engineers facing a petri net chart:
"dead lock in four moves!"
Index: m4/debug.m4
===================================================================
RCS file: /home/freeciv/CVS/freeciv/m4/debug.m4,v
retrieving revision 1.3
diff -u -u -r1.3 debug.m4
--- m4/debug.m4 2002/11/26 10:44:09 1.3
+++ m4/debug.m4 2003/01/10 11:29:12
@@ -10,10 +10,10 @@
dnl -g is added by AC_PROG_CC if the compiler understands it
if test "x$enable_debug" = "xyes"; then
- CPPFLAGS="$CPPFLAGS -DDEBUG"
+ AC_DEFINE(DEBUG, 1, [Define if you want extra debugging.])
else
if test "x$enable_debug" = "xno"; then
- CPPFLAGS="$CPPFLAGS -DNDEBUG"
+ AC_DEFINE(NDEBUG, 1, [Define if you want no debug support.])
fi
fi
])
|
|