2 # Process this file with autoconf to produce a configure script.
6 AC_INIT([userspace-rcu], [0.2.2], [mathieu dot desnoyers at polymtl dot ca])
7 AC_CONFIG_AUX_DIR([config])
8 AC_CONFIG_MACRO_DIR([m4])
9 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])
10 AC_CONFIG_SRCDIR([urcu.h])
11 AC_CONFIG_HEADERS([config.h])
13 # Checks for programs.
18 # Checks for typedefs, structures, and compiler characteristics.
23 # Checks for library functions.
26 AC_CHECK_FUNCS([bzero gettimeofday munmap strtoul])
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";;
41 if test "$ARCHTYPE" = "unknown"; then
42 AC_MSG_ERROR([Unable to detect the architecture.])
46 AM_CONDITIONAL([GCC_API], [test "x@ARCHTYPE@" != xx86 -a "x@ARCHTYPE@" != xppc])