projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: cross-build: configure.ac should use --target, not --host
[userspace-rcu.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index bcedfebe8be9aee4b8752727cbf4dc9de180c882..02ad2721589a7ae138167511c1d3fa64b9165341 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-2,11
+2,11
@@
# 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.7.
0
],[mathieu dot desnoyers at efficios dot com])
+AC_INIT([userspace-rcu],[0.7.
4
],[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
# 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], [
1
:0:0])
+AC_SUBST([URCU_LIBRARY_VERSION], [
2
:0:0])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([config])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([config])
@@
-28,7
+28,7
@@
AH_TEMPLATE([CONFIG_RCU_COMPAT_ARCH], [Compatibility mode for i386 which lacks c
AH_TEMPLATE([CONFIG_RCU_ARM_HAVE_DMB], [Use the dmb instruction if available for use on ARM.])
AH_TEMPLATE([CONFIG_RCU_TLS], [TLS provided by the compiler.])
AH_TEMPLATE([CONFIG_RCU_ARM_HAVE_DMB], [Use the dmb instruction if available for use on ARM.])
AH_TEMPLATE([CONFIG_RCU_TLS], [TLS provided by the compiler.])
-AX_TLS(
[AC_DEFINE_UNQUOTED([CONFIG_RCU_TLS], $ac_cv_tls)], [
])
+AX_TLS(
AC_DEFINE_UNQUOTED([CONFIG_RCU_TLS], $ac_cv_tls), [:
])
# Checks for programs.
AC_PROG_CC
# Checks for programs.
AC_PROG_CC
@@
-46,7
+46,7
@@
AC_FUNC_MMAP
AC_CHECK_FUNCS([bzero gettimeofday munmap sched_getcpu strtoul sysconf])
# Find arch type
AC_CHECK_FUNCS([bzero gettimeofday munmap sched_getcpu strtoul sysconf])
# Find arch type
-AS_CASE([$
hos
t_cpu],
+AS_CASE([$
targe
t_cpu],
[i386], [ARCHTYPE="x86" && SUBARCHTYPE="x86compat"],
[i486], [ARCHTYPE="x86"],
[i586], [ARCHTYPE="x86"],
[i386], [ARCHTYPE="x86" && SUBARCHTYPE="x86compat"],
[i486], [ARCHTYPE="x86"],
[i586], [ARCHTYPE="x86"],
@@
-63,6
+63,7
@@
AS_CASE([$host_cpu],
[alpha*], [ARCHTYPE="alpha"],
[ia64], [ARCHTYPE="gcc"],
[arm*], [ARCHTYPE="arm"],
[alpha*], [ARCHTYPE="alpha"],
[ia64], [ARCHTYPE="gcc"],
[arm*], [ARCHTYPE="arm"],
+ [mips*], [ARCHTYPE="mips"],
[ARCHTYPE="unknown"]
)
[ARCHTYPE="unknown"]
)
@@
-76,7
+77,7
@@
AS_IF([test "x$SUBARCHTYPE" = xx86compat],[
AC_DEFINE([CONFIG_RCU_COMPAT_ARCH], [1])
])
AC_DEFINE([CONFIG_RCU_COMPAT_ARCH], [1])
])
-AS_IF([test "$
hos
t_cpu" = "armv7l"],[
+AS_IF([test "$
targe
t_cpu" = "armv7l"],[
CFLAGS="$CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1"
])
CFLAGS="$CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1"
])
@@
-104,7
+105,7
@@
AS_IF([test "x$ARCHTYPE" = "xx86"],[
#For now, using lock; addl compatibility mode even for i686, because the
#Pentium III is seen as a i686, but lacks mfence instruction.
#Only using fence for x86_64.
#For now, using lock; addl compatibility mode even for i686, because the
#Pentium III is seen as a i686, but lacks mfence instruction.
#Only using fence for x86_64.
- AS_IF([test "x$
host_cpu" != "xi386" -a "x$host_cpu" != "xi486" -a "x$host_cpu" != "xi586" -a "x$hos
t_cpu" != "xi686"],[
+ AS_IF([test "x$
target_cpu" != "xi386" -a "x$target_cpu" != "xi486" -a "x$target_cpu" != "xi586" -a "x$targe
t_cpu" != "xi686"],[
AC_MSG_RESULT([yes])
AC_DEFINE([CONFIG_RCU_HAVE_FENCE], [1])
],[
AC_MSG_RESULT([yes])
AC_DEFINE([CONFIG_RCU_HAVE_FENCE], [1])
],[
This page took
0.023416 seconds
and
4
git commands to generate.