[cairo-commit] configure.in
Dan Amelang
dan at kemper.freedesktop.org
Fri Dec 1 12:42:14 PST 2006
configure.in | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+)
New commits:
diff-tree cb9a3c264086d0d11b74c504e5d3f891f929b00e (from 7fb4e978735bd7c9f3cff970ac6757feff3e74bb)
Author: Dan Amelang <dan at amelang.net>
Date: Fri Dec 1 12:41:55 2006 -0800
Add configure option --disable-some-floating-point
See discussion here: http://lists.freedesktop.org/archives/cairo/2006-November/008602.html
diff --git a/configure.in b/configure.in
index 9847f16..3588559 100644
--- a/configure.in
+++ b/configure.in
@@ -773,6 +773,29 @@ fi
dnl ===========================================================================
+AC_ARG_ENABLE(some-floating-point,
+ AS_HELP_STRING([--disable-some-floating-point],
+ [Disable certain code paths that rely heavily on double precision
+ floating-point calculation. This option can improve
+ performance on systems without a double precision floating-point
+ unit, but might degrade performance on those that do.]), [
+if test "x$enableval" = "xno"; then
+ # A value of 'no' for $enableval means that they want to disable, which
+ # means 'yes' for $disable_some_floating_point.
+ disable_some_floating_point=yes
+fi
+])
+
+AM_CONDITIONAL(DISABLE_SOME_FLOATING_POINT,
+ test "x$disable_some_floating_point" = "xyes")
+if test "x$disable_some_floating_point" = "xyes"; then
+ AC_DEFINE(DISABLE_SOME_FLOATING_POINT, 1,
+ [Define to 1 to disable certain code paths that rely heavily on
+ double precision floating-point calculation])
+fi
+
+dnl ===========================================================================
+
AC_CONFIG_COMMANDS([src/cairo-features.h],
[
featuresfile=src/cairo-features.h
More information about the cairo-commit
mailing list