X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=configure.ac;h=40603c41f6452171de1b159f9e736eafdcba9d2d;hb=79da867ed182157b0353011b2947e87185c2fa60;hp=422b11b31f721a7ba32adc3a6e55d52067e1a3ee;hpb=7d413817f09b2d17b1a79ea012590609ffab5eb6;p=urcu.git diff --git a/configure.ac b/configure.ac index 422b11b..40603c4 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,8 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip]) AC_CONFIG_SRCDIR([urcu.h]) AH_TEMPLATE([CONFIG_SMP], [Enable SMP support. With SMP support enabled, uniprocessors are also supported. With SMP support disabled, UP systems work fine, but the behavior of SMP systems is undefined.]) +AH_TEMPLATE([CONFIG_HAVE_FENCE], [Defined when on a system that has memory fence +instructions.]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. @@ -49,6 +51,14 @@ fi AC_SUBST(ARCHTYPE) AC_SUBST(SUBARCHTYPE) +[ +if test "x$ARCHTYPE" = "xx86" -a "x$target_cpu" != "xi386" -a "x$target_cpu" != "xi486" -a "x$target_cpu" != "xi586"; then +] + AC_DEFINE([CONFIG_HAVE_FENCE], [1]) +[ +fi +] + AM_CONDITIONAL([GCC_API], [test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc]) AM_CONDITIONAL([COMPAT_ARCH], [test "x$SUBARCHTYPE" == xx86compat ])