Initial import of libustctl and libustcomm
[lttng-tools.git] / configure.ac
1 AC_INIT([lttng-tools], [0.0.1], [david.goulet@polymtl.ca], [http://lttng.org])
2 AC_CONFIG_AUX_DIR([config])
3 AC_CONFIG_MACRO_DIR([config])
4 AM_INIT_AUTOMAKE
5 AM_SILENT_RULES([yes])
6
7 AC_CHECK_HEADERS([ \
8 sys/types.h unistd.h fcntl.h string.h pthread.h limits.h \
9 signal.h stdlib.h sys/un.h sys/socket.h stdlib.h stdio.h \
10 getopt.h sys/ipc.h sys/shm.h popt.h grp.h \
11 ])
12
13 # Check for pthread
14 AC_CHECK_LIB([pthread], [pthread_create], [],
15 [AC_MSG_ERROR([Cannot find libpthread. Use [LDFLAGS]=-Ldir to specify its location.])]
16 )
17
18 # Check libpopt
19 AC_CHECK_LIB([popt], [poptGetContext], [],
20 [AC_MSG_ERROR([Cannot find libpopt. Use [LDFLAGS]=-Ldir to specify its location.])]
21 )
22
23 # Check libuuid
24 AC_CHECK_LIB([uuid], [uuid_generate], [],
25 [AC_MSG_ERROR([Cannot find libuuid. Use [LDFLAGS]=-Ldir to specify its location.])]
26 )
27
28 # Check liburcu
29 AC_CHECK_LIB([urcu], [synchronize_rcu], [],
30 [AC_MSG_ERROR([Cannot find liburcu. Use [LDFLAGS]=-Ldir to specify its location.])]
31 )
32 AC_CHECK_DECL([cds_list_add], [],
33 [AC_MSG_ERROR([liburcu 0.5.4 or newer is needed])], [[#include <urcu/list.h>]]
34 )
35
36 CFLAGS="-Wall $CFLAGS -g -fno-strict-aliasing"
37
38 AC_PROG_CC
39 AC_PROG_LIBTOOL
40
41 AC_CONFIG_FILES([
42 Makefile
43 include/Makefile
44 libkernelctl/Makefile
45 liblttngctl/Makefile
46 liblttsessiondcomm/Makefile
47 libustctl/Makefile
48 libustcomm/Makefile
49 ltt-sessiond/Makefile
50 lttng/Makefile
51 kconsumerd/Makefile
52 tests/Makefile
53 tests/ltt-sessiond/Makefile
54 ])
55
56 AC_OUTPUT
This page took 0.032533 seconds and 6 git commands to generate.