[cairo-commit] boilerplate/Makefile.win32.features build/configure.ac.features build/Makefile.win32.features build/Makefile.win32.features-h configure.ac src/Makefile.win32.features util/Makefile.am

Chris Wilson ickle at kemper.freedesktop.org
Sat Sep 5 07:23:22 PDT 2009


 boilerplate/Makefile.win32.features |    7 +++++++
 build/Makefile.win32.features       |    1 +
 build/Makefile.win32.features-h     |    3 +++
 build/configure.ac.features         |    3 +++
 configure.ac                        |    8 +++++---
 src/Makefile.win32.features         |    7 +++++++
 util/Makefile.am                    |    2 +-
 7 files changed, 27 insertions(+), 4 deletions(-)

New commits:
commit 310cebf194919cf3a7c37e724e64962ae47343cc
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Sep 5 15:21:50 2009 +0100

    [configure] Add option to disable trace.
    
    Some environments may be broken beyond our capabilities to detect, or
    maybe the user is just insane and doesn't want to build my nice shiny
    cairo-trace. Whatever, give them the option to choose:
    
      $ ./configure --disable-trace

diff --git a/boilerplate/Makefile.win32.features b/boilerplate/Makefile.win32.features
index 03eee6e..498d0be 100644
--- a/boilerplate/Makefile.win32.features
+++ b/boilerplate/Makefile.win32.features
@@ -347,3 +347,10 @@ all_cairo_boilerplate_sources += $(cairo_boilerplate_user_sources)
 enabled_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)
 enabled_cairo_boilerplate_private += $(cairo_boilerplate_user_private)
 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_user_sources)
+
+all_cairo_boilerplate_private += $(cairo_boilerplate_trace_private) $(cairo_boilerplate_trace_headers)
+all_cairo_boilerplate_sources += $(cairo_boilerplate_trace_sources)
+ifeq ($(CAIRO_HAS_TRACE),1)
+enabled_cairo_boilerplate_private += $(cairo_boilerplate_trace_private) $(cairo_boilerplate_trace_headers)
+enabled_cairo_boilerplate_sources += $(cairo_boilerplate_trace_sources)
+endif
diff --git a/build/Makefile.win32.features b/build/Makefile.win32.features
index bc82d0f..eb10b23 100644
--- a/build/Makefile.win32.features
+++ b/build/Makefile.win32.features
@@ -30,3 +30,4 @@ CAIRO_HAS_PDF_SURFACE=1
 CAIRO_HAS_SVG_SURFACE=1
 CAIRO_HAS_TEST_SURFACES=0
 CAIRO_HAS_XML_SURFACE=1
+CAIRO_HAS_TRACE=1
diff --git a/build/Makefile.win32.features-h b/build/Makefile.win32.features-h
index 4eb5932..552a2d0 100644
--- a/build/Makefile.win32.features-h
+++ b/build/Makefile.win32.features-h
@@ -99,4 +99,7 @@ ifeq ($(CAIRO_HAS_XML_SURFACE),1)
 	@echo "#define CAIRO_HAS_XML_SURFACE 1" >> src/cairo-features.h
 endif
 	@echo "#define CAIRO_HAS_USER_FONT 1" >> src/cairo-features.h
+ifeq ($(CAIRO_HAS_TRACE),1)
+	@echo "#define CAIRO_HAS_TRACE 1" >> src/cairo-features.h
+endif
 	@echo "#endif" >>  src/cairo-features.h
diff --git a/build/configure.ac.features b/build/configure.ac.features
index ec9cde5..2606850 100644
--- a/build/configure.ac.features
+++ b/build/configure.ac.features
@@ -393,6 +393,9 @@ AC_DEFUN([CAIRO_REPORT],
 	echo "  EGL functions:   $use_egl"
 	echo "  Eagle functions: $use_eagle"
 	echo ""
+	echo "The following features and utilies:"
+	echo "  cairo-trace:   $use_trace"
+	echo ""
 	echo "And the following internal features:"
 	echo "  gtk-doc:       $enable_gtk_doc"
 	echo "  gcov support:  $use_gcov"
diff --git a/configure.ac b/configure.ac
index d1b105e..c4b38d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -644,9 +644,11 @@ case $host in
 	;;
 esac
 
-AM_CONDITIONAL(BUILD_TRACE,
-	       test "x$have_ld_preload" = "xyes" \
-	       -a "x$have_libz" = "xyes")
+CAIRO_ENABLE(trace, cairo-trace, yes, [
+	if test "x$have_ld_preload" != "xyes" -o "x$have_libz" != "xyes"; then
+		use_trace="no (requires dynamic linker and zlib)"
+	fi
+])
 
 AM_CONDITIONAL(BUILD_SCRIPT, test "x$have_libz" = "xyes")
 
diff --git a/src/Makefile.win32.features b/src/Makefile.win32.features
index df8384d..5164096 100644
--- a/src/Makefile.win32.features
+++ b/src/Makefile.win32.features
@@ -465,3 +465,10 @@ all_cairo_sources += $(cairo_user_sources)
 enabled_cairo_headers += $(cairo_user_headers)
 enabled_cairo_private += $(cairo_user_private)
 enabled_cairo_sources += $(cairo_user_sources)
+
+all_cairo_private += $(cairo_trace_private) $(cairo_trace_headers)
+all_cairo_sources += $(cairo_trace_sources)
+ifeq ($(CAIRO_HAS_TRACE),1)
+enabled_cairo_private += $(cairo_trace_private) $(cairo_trace_headers)
+enabled_cairo_sources += $(cairo_trace_sources)
+endif
diff --git a/util/Makefile.am b/util/Makefile.am
index fb47162..6ee0ba9 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -6,7 +6,7 @@ if BUILD_SCRIPT
 SUBDIRS += cairo-script
 endif
 
-if BUILD_TRACE
+if CAIRO_HAS_TRACE
 SUBDIRS += cairo-trace
 if CAIRO_HAS_SCRIPT_SURFACE
 SUBDIRS += cairo-fdr


More information about the cairo-commit mailing list