projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add native ARM port for armv7l
[userspace-rcu.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index 1ce19d0c51b6fbc56ec0a019e3c60cecb2899d57..7b4600424410b8908f19ba4ee4d39ff7b07e09d4 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-2,7
+2,7
@@
# Process this file with autoconf to produce a configure script.
# 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
AC_CONFIG_AUX_DIR([config])
AC_CANONICAL_TARGET
AC_CANONICAL_HOST
@@
-51,19
+51,26
@@
case $host_cpu in
s390x) ARCHTYPE="s390" ;;
sparc64) ARCHTYPE="sparc64" ;;
alpha*) ARCHTYPE="alpha" ;;
s390x) ARCHTYPE="s390" ;;
sparc64) ARCHTYPE="sparc64" ;;
alpha*) ARCHTYPE="alpha" ;;
+ ia64) ARCHTYPE="gcc" ;;
+ armv7l) ARCHTYPE="armv7l" ;;
*) ARCHTYPE="unknown";;
esac
*) 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
fi
-UATOMICSRC=urcu/uatomic_arch_$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 "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_SUBST(ARCHTYPE)
AC_SUBST(SUBARCHTYPE)
AC_SUBST(ARCHTYPE)
AC_SUBST(SUBARCHTYPE)
This page took
0.0349930000000001 seconds
and
4
git commands to generate.