2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([ust], [0.0], [pierre-marc dot fournier at polymtl dot ca])
6 AC_CONFIG_AUX_DIR([config])
7 AC_CONFIG_MACRO_DIR([m4])
8 AM_INIT_AUTOMAKE([0.0 foreign dist-bzip2 no-dist-gzip])
9 AC_CONFIG_SRCDIR([ust/ust.c])
10 AC_CONFIG_HEADERS([config.h])
12 # Checks for programs.
17 ## Checks for libraries.
18 ## FIXME: Replace `main' with a function in `-ldl':
19 #AC_CHECK_LIB([dl], [main])
20 ## FIXME: Replace `main' with a function in `-lmarkers':
21 #AC_CHECK_LIB([markers], [main])
22 ## FIXME: Replace `main' with a function in `-lpthread':
23 #AC_CHECK_LIB([pthread], [main])
24 ## FIXME: Replace `main' with a function in `-ltracectl':
25 #AC_CHECK_LIB([tracectl], [main])
26 ## FIXME: Replace `main' with a function in `-ltracing':
27 #AC_CHECK_LIB([tracing], [main])
28 ## FIXME: Replace `main' with a function in `-lurcu':
29 #AC_CHECK_LIB([urcu], [main])
31 # Checks for header files.
32 #AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
34 # Checks for typedefs, structures, and compiler characteristics.
47 #AC_CHECK_TYPES([ptrdiff_t])
49 # Checks for library functions.
51 AC_CHECK_FUNCS([gettimeofday munmap socket strerror strtol])
53 AC_ARG_WITH(urcu, [ --with-urcu path Path to userspace RCU source], [
54 AC_CHECK_FILE(["$withval/urcu.h"], [
55 URCU_CFLAGS="-I$withval"
56 URCU_LIBS="-L$withval -lurcu" ],
57 AC_MSG_ERROR([Cannot find urcu.h in urcu directory]))
59 PKG_CHECK_MODULES(URCU, [liburcu], , [
60 AC_MSG_ERROR([Must specify urcu path.])])
65 AC_ARG_WITH(kcompat, [ --with-kcompat path Path to userspace kcompat source
67 AC_CHECK_FILE("$withval/kcompat.h", [
68 KCOMPAT_CFLAGS="-I$withval $URCU_CFLAGS"
70 ], AC_MSG_ERROR([Cannot find kcompat.h in kcompat directory]))
72 PKG_CHECK_MODULES(KCOMPAT, [libkcompat], , [
73 AC_MSG_ERROR([Must specify kcompat path.])])
75 AC_SUBST(KCOMPAT_CFLAGS)
76 AC_SUBST(KCOMPAT_LIBS)
85 tests/basic_long/Makefile
86 libmallocwrap/Makefile