Replaced preprocessor symbol GL_MESA_TRACE with MESA_TRACE.
Changed src/Makefile.X11 to compile Trace sources like other drivers.
diff --git a/src/mesa/Makefile.X11 b/src/mesa/Makefile.X11
index bb383f6..d4b1b5b 100644
--- a/src/mesa/Makefile.X11
+++ b/src/mesa/Makefile.X11
@@ -1,4 +1,4 @@
-# $Id: Makefile.X11,v 1.22 2000/09/07 15:42:13 brianp Exp $
+# $Id: Makefile.X11,v 1.23 2000/09/26 15:27:23 brianp Exp $
 
 # Mesa 3-D graphics library
 # Version:  3.5
@@ -132,7 +132,15 @@
 	FX/fxtexman.c \
 	FX/fxtrifuncs.c \
 	FX/fxvsetup.c \
-	FX/fxglidew.c
+	FX/fxglidew.c \
+	Trace/tr_2string.c \
+	Trace/tr_attrib.c \
+	Trace/tr_context.c \
+	Trace/tr_control.c \
+	Trace/tr_error.c \
+	Trace/tr_print.c \
+	Trace/tr_wrapper.c
+
 
 ASM_SOURCES = 
 
@@ -170,6 +178,7 @@
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 X/xm_tri.o: X/xm_tri.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 SVGA/svgamesa.o: SVGA/svgamesa.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 SVGA/svgamesa8.o: SVGA/svgamesa8.c
@@ -182,8 +191,10 @@
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 SVGA/svgamesa32.o: SVGA/svgamesa32.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 OSmesa/osmesa.o: OSmesa/osmesa.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 FX/fxapi.o: FX/fxapi.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 FX/fxclip.o: FX/fxclip.c
@@ -214,9 +225,9 @@
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 FX/fxglidew.o: FX/fxglidew.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 FX/X86/fx_3dnow_fastpath.o: FX/X86/fx_3dnow_fastpath.S
-GGI/ggimesa.o: GGI/ggimesa.c
-	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 X86/x86.o: X86/x86.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 X86/common_x86.o: X86/common_x86.c
@@ -226,6 +237,26 @@
 X86/katmai.o: X86/katmai.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 
+GGI/ggimesa.o: GGI/ggimesa.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+Trace/tr_2string.o: Trace/tr_2string.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_attrib.o: Trace/tr_attrib.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_context.o: Trace/tr_context.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_control.o: Trace/tr_control.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_error.o: Trace/tr_error.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_print.o: Trace/tr_print.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_wrapper.o: Trace/tr_wrapper.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+
+
 ##### TARGETS #####
 
 #default:
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index bb7c20c..9b01046 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -1,4 +1,4 @@
-/* $Id: glapi.c,v 1.44 2000/09/15 19:45:41 brianp Exp $ */
+/* $Id: glapi.c,v 1.45 2000/09/26 15:27:22 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -49,7 +49,7 @@
 #include "glapitable.h"
 #include "glthread.h"
 
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
 #include "types.h"
 #endif
 
@@ -170,7 +170,7 @@
 void
 _glapi_set_dispatch(struct _glapi_table *dispatch)
 {
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
    GLcontext * ctx;
 #endif
 
@@ -185,35 +185,36 @@
 #endif
 
 #if defined(THREADS)
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
    ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD);
    if (ctx->TraceCtx->traceEnabled == GL_TRUE) {
-      _glthread_SetTSD(&DispatchTSD, (void*) ctx->TraceDispatch);
+      _glthread_SetTSD(&DispatchTSD, (void *) ctx->TraceDispatch);
       if (ThreadSafe)
          _glapi_Dispatch = NULL;
       else
          _glapi_Dispatch = ctx->TraceDispatch;
-   } else {
-      _glthread_SetTSD(&DispatchTSD, (void*) dispatch);
+   }
+   else {
+      _glthread_SetTSD(&DispatchTSD, (void *) dispatch);
       if (ThreadSafe)
          _glapi_Dispatch = NULL;
       else
          _glapi_Dispatch = dispatch;
    }
 #else
-   _glthread_SetTSD(&DispatchTSD, (void*) dispatch);
+   _glthread_SetTSD(&DispatchTSD, (void *) dispatch);
    if (ThreadSafe)
       _glapi_Dispatch = NULL;
    else
       _glapi_Dispatch = dispatch;
-#endif /*GL_MESA_TRACE*/
+#endif /*MESA_TRACE*/
 #else /*THREADS*/
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
    ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD);
    _glapi_Dispatch = ctx->TraceDispatch;
 #else
    _glapi_Dispatch = dispatch;
-#endif /*GL_MESA_TRACE*/
+#endif /*MESA_TRACE*/
 #endif /*THREADS*/
 }
 
@@ -239,7 +240,7 @@
 }
 
 
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
 struct _glapi_table *
 _glapi_get_true_dispatch(void)
 {
@@ -263,7 +264,7 @@
    return ((GLcontext *)_glapi_Context)->CurrentDispatch;
 #endif
 }
-#endif /* GL_MESA_TRACE */
+#endif /* MESA_TRACE */
 
 
 /*
diff --git a/src/mesa/glapi/glapi.h b/src/mesa/glapi/glapi.h
index e64562a..f55b074 100644
--- a/src/mesa/glapi/glapi.h
+++ b/src/mesa/glapi/glapi.h
@@ -1,4 +1,4 @@
-/* $Id: glapi.h,v 1.16 2000/09/15 19:45:41 brianp Exp $ */
+/* $Id: glapi.h,v 1.17 2000/09/26 15:27:23 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -59,7 +59,7 @@
 _glapi_get_dispatch(void);
 
 
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
 extern struct _glapi_table *
 _glapi_get_true_dispatch(void);
 #endif
diff --git a/src/mesa/main/Makefile.X11 b/src/mesa/main/Makefile.X11
index bb383f6..d4b1b5b 100644
--- a/src/mesa/main/Makefile.X11
+++ b/src/mesa/main/Makefile.X11
@@ -1,4 +1,4 @@
-# $Id: Makefile.X11,v 1.22 2000/09/07 15:42:13 brianp Exp $
+# $Id: Makefile.X11,v 1.23 2000/09/26 15:27:23 brianp Exp $
 
 # Mesa 3-D graphics library
 # Version:  3.5
@@ -132,7 +132,15 @@
 	FX/fxtexman.c \
 	FX/fxtrifuncs.c \
 	FX/fxvsetup.c \
-	FX/fxglidew.c
+	FX/fxglidew.c \
+	Trace/tr_2string.c \
+	Trace/tr_attrib.c \
+	Trace/tr_context.c \
+	Trace/tr_control.c \
+	Trace/tr_error.c \
+	Trace/tr_print.c \
+	Trace/tr_wrapper.c
+
 
 ASM_SOURCES = 
 
@@ -170,6 +178,7 @@
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 X/xm_tri.o: X/xm_tri.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 SVGA/svgamesa.o: SVGA/svgamesa.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 SVGA/svgamesa8.o: SVGA/svgamesa8.c
@@ -182,8 +191,10 @@
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 SVGA/svgamesa32.o: SVGA/svgamesa32.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 OSmesa/osmesa.o: OSmesa/osmesa.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 FX/fxapi.o: FX/fxapi.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 FX/fxclip.o: FX/fxclip.c
@@ -214,9 +225,9 @@
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 FX/fxglidew.o: FX/fxglidew.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 FX/X86/fx_3dnow_fastpath.o: FX/X86/fx_3dnow_fastpath.S
-GGI/ggimesa.o: GGI/ggimesa.c
-	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
 X86/x86.o: X86/x86.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 X86/common_x86.o: X86/common_x86.c
@@ -226,6 +237,26 @@
 X86/katmai.o: X86/katmai.c
 	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
 
+GGI/ggimesa.o: GGI/ggimesa.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+Trace/tr_2string.o: Trace/tr_2string.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_attrib.o: Trace/tr_attrib.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_context.o: Trace/tr_context.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_control.o: Trace/tr_control.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_error.o: Trace/tr_error.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_print.o: Trace/tr_print.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+Trace/tr_wrapper.o: Trace/tr_wrapper.c
+	$(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
+
+
+
 ##### TARGETS #####
 
 #default:
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 71cbc6a..5513272 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.88 2000/09/17 21:56:07 brianp Exp $ */
+/* $Id: context.c,v 1.89 2000/09/26 15:27:22 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -74,7 +74,7 @@
 #endif
 
 
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
 #include "Trace/tr_context.h"
 #include "Trace/tr_wrapper.h"
 #endif
@@ -1491,7 +1491,7 @@
    _mesa_init_dlist_table(ctx->Save, dispatchSize);
    ctx->CurrentDispatch = ctx->Exec;
 
-#if defined(GL_MESA_TRACE)
+#if defined(MESA_TRACE)
    ctx->TraceCtx = CALLOC( sizeof(trace_context_t) );
 #if 0
    /* Brian: do you want to have CreateContext fail here,