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([ustctl/ustctl.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])
55 # urcu - check if we just find the headers it out of the box.
56 AC_CHECK_HEADERS([urcu-bp.h], [], [AC_MSG_ERROR([Cannot find [URCU] headers (urcu-bp.h). Use [CFLAGS]=-Idir to specify their location.])])
58 # urcu - check that URCU lib is available to compilation
59 AC_CHECK_LIB([urcu-bp], [synchronize_rcu], [], [AC_MSG_ERROR([Cannot find liburcu-bp lib. Use [LDFLAGS]=-Ldir to specify its location.])])
63 AC_CHECK_HEADERS([kcompat.h], [], [AC_MSG_ERROR([Cannot find kcompat headers (kcompat.h). Use [CFLAGS]=-Idir to specify their location.])])
74 tests/basic_long/Makefile
76 libmallocwrap/Makefile