summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-08-04 20:13:43 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-08-06 10:16:33 +0100
commit920f59a755ce142b068f21b9db07f76f35449f16 (patch)
tree980bd447ed0d0b424e1d4b711a0fe2bf63ea5066 /build
parentcb30c1f367967e3395296a5d01a3eb9050635e3b (diff)
[build] Configure switch to disable atomics
Workaround for my arm toolchain which succeeds in linking the configure program, only to complain when linking a program (such as cairo-perf) against libcairo.so. Annoying.
Diffstat (limited to 'build')
-rw-r--r--build/configure.ac.system10
1 files changed, 8 insertions, 2 deletions
diff --git a/build/configure.ac.system b/build/configure.ac.system
index c75460d7..46b7f437 100644
--- a/build/configure.ac.system
+++ b/build/configure.ac.system
@@ -8,8 +8,14 @@ dnl ====================================================================
AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = "xyes")
CAIRO_BIGENDIAN
-CAIRO_CHECK_NATIVE_ATOMIC_PRIMITIVES
-CAIRO_CHECK_ATOMIC_OP_NEEDS_MEMORY_BARRIER
+AC_ARG_ENABLE(atomic,
+ [AS_HELP_STRING([--disable-atomic],
+ [disable use of native atomic operations])],
+ [use_atomic=$enableval], [use_atomic=yes])
+AS_IF([test "x$use_atomic" = "xyes"], [
+ CAIRO_CHECK_NATIVE_ATOMIC_PRIMITIVES
+ CAIRO_CHECK_ATOMIC_OP_NEEDS_MEMORY_BARRIER
+])
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)