X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=61a0d7613a9fb887d7bdd998b78f07e00a82c095;hb=ca5a03db55305c0bf8c2e0571ca46fcccea53512;hp=c7978318337f9e9637470fb40607d8622e7dc5ba;hpb=806f8114cdc8ed02ca1feba0ecb69aac9c0fbd5d;p=urcu.git diff --git a/configure.ac b/configure.ac index c797831..61a0d76 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. -AC_INIT([userspace-rcu], [0.4.1], [mathieu dot desnoyers at efficios dot com]) +AC_INIT([userspace-rcu], [0.4.4], [mathieu dot desnoyers at efficios dot com]) AC_CONFIG_AUX_DIR([config]) AC_CANONICAL_TARGET AC_CANONICAL_HOST @@ -50,12 +50,24 @@ case $host_cpu in s390) ARCHTYPE="s390" ;; s390x) ARCHTYPE="s390" ;; sparc64) ARCHTYPE="sparc64" ;; + alpha*) ARCHTYPE="alpha" ;; + ia64) ARCHTYPE="gcc" ;; *) ARCHTYPE="unknown";; esac -if test "$ARCHTYPE" = "unknown"; then - AC_MSG_ERROR([Unable to detect the architecture.]) +if test "$ARCHTYPE" != "unknown"; then + UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h + ARCHSRC=urcu/arch_$ARCHTYPE.h +else + UATOMICSRC=urcu/uatomic_generic.h + ARCHSRC=urcu/arch_generic.h +fi +if test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc; then + APISRC=tests/api_gcc.h +else + APISRC=tests/api_$ARCHTYPE.h fi + AC_SUBST(ARCHTYPE) AC_SUBST(SUBARCHTYPE) @@ -95,8 +107,6 @@ AC_TRY_COMPILE( AM_CONDITIONAL([COMPAT_FUTEX], [ test "x$compat_futex_test" = "x1" ]) -AM_CONDITIONAL([GCC_API], [test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc]) - AM_CONDITIONAL([COMPAT_ARCH], [test "x$SUBARCHTYPE" = xx86compat ]) [ @@ -204,6 +214,11 @@ AC_CHECK_FUNCS( CFLAGS=$saved_CFLAGS +AC_CONFIG_LINKS([ + urcu/arch.h:$ARCHSRC + urcu/uatomic_arch.h:$UATOMICSRC + tests/api.h:$APISRC +]) AC_CONFIG_FILES([ Makefile tests/Makefile