[Pixman] [PATCH 1/4] Add a configure switch to enable floating-point implementation

Dmitri Vorobiev dmitri.vorobiev at movial.com
Tue Sep 21 05:17:45 PDT 2010


This patch adds a new --enable-float switch to the configuration
script. By default, the floating-point paths are off, and nothing
changes in the Pixman code.
---
 configure.ac |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index dbff2a6..06cca81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -575,6 +575,20 @@ if test $enable_timers = yes ; then
 fi
 AC_SUBST(PIXMAN_TIMERS)
 
+dnl ==============================================
+dnl Float
+
+AC_ARG_ENABLE(float,
+   [AC_HELP_STRING([--enable-float],
+		   [enable floating-point paths [default=no]])],
+   [enable_float=$enableval], [enable_float=no])
+
+if test $enable_float = yes ; then
+   AC_DEFINE(USE_FLOAT, 1, [enable floating-point paths])
+fi
+
+AM_CONDITIONAL(USE_FLOAT, test $enable_float = yes)
+
 dnl ===================================
 dnl GTK+
 
-- 
1.6.3.3



More information about the Pixman mailing list