Restrict supported arch ot P6+ on Intel x86 32.
[urcu.git] / configure.ac
... / ...
CommitLineData
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4
5AC_INIT([userspace-rcu], [0.2.3-alpha], [mathieu dot desnoyers at polymtl dot ca])
6AC_CONFIG_AUX_DIR([config])
7AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])
8AC_CONFIG_SRCDIR([urcu.h])
9AC_CONFIG_HEADERS([config.h])
10
11# Checks for programs.
12AC_PROG_CC
13AC_PROG_MAKE_SET
14AC_PROG_LIBTOOL
15
16# Checks for typedefs, structures, and compiler characteristics.
17AC_C_INLINE
18AC_TYPE_PID_T
19AC_TYPE_SIZE_T
20
21# Checks for library functions.
22AC_FUNC_MALLOC
23AC_FUNC_MMAP
24AC_CHECK_FUNCS([bzero gettimeofday munmap strtoul])
25
26# Find arch type
27case $host_cpu in
28 x86_64) ARCHTYPE="x86";;
29 i586) ARCHTYPE="x86" ;;
30 i686) ARCHTYPE="x86" ;;
31 powerpc) ARCHTYPE="ppc" ;;
32 ppc64) ARCHTYPE="ppc" ;;
33 ppc) ARCHTYPE="ppc" ;;
34 s390) ARCHTYPE="s390" ;;
35 s390x) ARCHTYPE="s390" ;;
36 *) ARCHTYPE="unknown";;
37esac
38
39if test "$ARCHTYPE" = "unknown"; then
40 AC_MSG_ERROR([Unable to detect the architecture.])
41fi
42AC_SUBST(ARCHTYPE)
43
44AM_CONDITIONAL([GCC_API], [test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc])
45
46
47AC_CONFIG_FILES([
48 Makefile
49 tests/Makefile
50])
51AC_OUTPUT
This page took 0.021699 seconds and 4 git commands to generate.