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