AC_CONFIG_HEADERS([config.h urcu/config.h])
+#for tests
+AM_PATH_GLIB_2_0(2.22.0, ,AC_MSG_ERROR([glib is required in order to compile BabelTrace - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
+
# Keep at the end to do not pollute installed header.
AH_TEMPLATE([CONFIG_RCU_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_RCU_HAVE_FENCE], [Defined when on a system that has memory fence instructions.])
UATOMICSRC=urcu/uatomic/$ARCHTYPE.h
ARCHSRC=urcu/arch/$ARCHTYPE.h
-if test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc; then
- APISRC=tests/api_gcc.h
-else
- APISRC=tests/api_$ARCHTYPE.h
-fi
if test "$ARCHTYPE" == "armv7l"; then
CFLAGS="-mcpu=cortex-a9 -mtune=cortex-a9 -O"
fi
AC_CONFIG_LINKS([
urcu/arch.h:$ARCHSRC
urcu/uatomic.h:$UATOMICSRC
- tests/api.h:$APISRC
])
AC_CONFIG_FILES([
Makefile