# Process this file with autoconf to produce a configure script.
-AC_INIT([userspace-rcu],[0.8.8],[mathieu dot desnoyers at efficios dot com])
+AC_INIT([userspace-rcu],[0.8.11],[mathieu dot desnoyers at efficios dot com])
# Following the numbering scheme proposed by libtool for the library version
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
-AC_SUBST([URCU_LIBRARY_VERSION], [2:0:0])
+AC_SUBST([URCU_LIBRARY_VERSION], [3:0:1])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([config])
AC_TYPE_SIZE_T
# Checks for library functions.
-AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([bzero gettimeofday munmap sched_getcpu strtoul sysconf])
+# AC_FUNC_MALLOC causes problems when cross-compiling.
+#AC_FUNC_MALLOC
+
# Find arch type
AS_CASE([$host_cpu],
[i386], [ARCHTYPE="x86" && SUBARCHTYPE="x86compat"],
])
AS_IF([test "$host_cpu" = "armv7l"],[
- CFLAGS="$CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1"
+ AM_CFLAGS="$AM_CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1"
])
# ARM-specific checks
# Since we define _GNU_SOURCE in the sources, must do so too in the
# autoconf tests, as defining _GNU_SOURCE or not exposes
# sched_setaffinity bits differently.
-saved_CFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -D_GNU_SOURCE"
+saved_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS $AM_CFLAGS -D_GNU_SOURCE"
AC_CHECK_TYPES([cpu_set_t],
[have_cpu_set_t="yes"],
])
CFLAGS=$saved_CFLAGS
+AC_SUBST(AM_CFLAGS)
AC_CONFIG_LINKS([
urcu/arch.h:$ARCHSRC