1f1d28449f9865399f49f94998d43ca93873d85c
[babeltrace.git] / configure.ac
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_INIT([babeltrace], [0.1], [mathieu dot desnoyers at efficios dot com])
5 AC_CONFIG_AUX_DIR([config])
6 AC_CANONICAL_TARGET
7 AC_CANONICAL_HOST
8 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])
9 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10
11 AC_CONFIG_MACRO_DIR([m4])
12
13 AM_PROG_MKDIR_P
14
15 AC_CONFIG_HEADERS([config.h])
16
17 # Checks for programs.
18 AC_PROG_CC
19 AC_PROG_MAKE_SET
20 AC_PROG_LIBTOOL
21 AC_PROG_YACC
22 AC_PROG_LEX
23
24 AM_PATH_GLIB_2_0(2.4.0, ,AC_MSG_ERROR([glib is required in order to compile BabelTrace - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
25
26 # Checks for typedefs, structures, and compiler characteristics.
27 AC_C_INLINE
28 AC_TYPE_PID_T
29 AC_TYPE_SIZE_T
30
31 # Checks for library functions.
32 AC_FUNC_MALLOC
33 AC_FUNC_MMAP
34 AC_CHECK_FUNCS([bzero gettimeofday munmap strtoul])
35
36 pkg_modules="gmodule-2.0 >= 2.0.0"
37 PKG_CHECK_MODULES(GMODULE, [$pkg_modules])
38 AC_SUBST(PACKAGE_LIBS)
39
40 PACKAGE_CFLAGS="$GMODULE_CFLAGS"
41 AC_SUBST(PACKAGE_CFLAGS)
42
43 AC_CONFIG_FILES([
44 Makefile
45 types/Makefile
46 formats/Makefile
47 formats/ctf/Makefile
48 formats/ctf/types/Makefile
49 formats/ctf/metadata/Makefile
50 converter/Makefile
51 tests/Makefile
52 ])
53 AC_OUTPUT
This page took 0.029951 seconds and 3 git commands to generate.