9f14a497 |
1 | # -*- Autoconf -*- |
2 | # Process this file with autoconf to produce a configure script. |
3 | |
4 | AC_PREREQ(2.57) |
5 | AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) |
6 | AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-29052003) |
7 | AC_CONFIG_HEADER([config.h]) |
8 | AC_PROG_LIBTOOL |
39407106 |
9 | AM_PROG_LIBTOOL |
3c18ff33 |
10 | #AM_CONFIG_HEADER |
11 | AM_PATH_GLIB_2_0 |
9f14a497 |
12 | |
13 | # Checks for programs. |
14 | AC_PROG_CC |
15 | |
16 | # Checks for libraries. |
aea2b50a |
17 | AC_CHECK_LIB([popt], [poptGetNextOpt]) |
18 | AC_CHECK_LIB([gmodule-2.0], [g_module_open]) |
19 | AC_CHECK_LIB([dl], [dlopen]) |
20 | AC_CHECK_LIB([glib-2.0], [g_malloc]) |
9f14a497 |
21 | |
22 | # Checks for header files. |
23 | AC_HEADER_STDC |
3c18ff33 |
24 | AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h]) |
9f14a497 |
25 | |
26 | # Checks for typedefs, structures, and compiler characteristics. |
27 | AC_HEADER_STDBOOL |
28 | AC_C_CONST |
29 | AC_C_INLINE |
30 | AC_TYPE_OFF_T |
31 | AC_TYPE_SIZE_T |
32 | AC_HEADER_TIME |
33 | |
34 | # Checks for library functions. |
35 | AC_FUNC_ERROR_AT_LINE |
36 | AC_FUNC_MALLOC |
37 | AC_FUNC_SELECT_ARGTYPES |
38 | AC_CHECK_FUNCS([select]) |
39 | |
40 | #CPPFLAGS="$CPPFLAGS -I" |
41 | |
a521ac8f |
42 | lttvplugindir="${libdir}/lttv/plugins" |
43 | AC_SUBST(lttvplugindir) |
9f14a497 |
44 | |
38d7caa6 |
45 | lttlibdir="${libdir}/ltt" |
46 | AC_SUBST(lttlibdir) |
47 | |
48 | |
8c4bc8bf |
49 | DEFAULT_INCLUDES="-I\$(top_srcdir)/include" |
50 | AC_SUBST(DEFAULT_INCLUDES) |
273475ce |
51 | |
940dc6d6 |
52 | lttvincludedir="${includedir}/lttv" |
53 | AC_SUBST(lttvincludedir) |
54 | |
55 | lttincludedir="${includedir}/ltt" |
56 | AC_SUBST(lttincludedir) |
57 | |
9f14a497 |
58 | AC_CONFIG_FILES([Makefile |
59 | lttv/Makefile |
830eba15 |
60 | lttv/modules/Makefile |
61 | lttv/modules/gui/Makefile |
62 | lttv/modules/text/Makefile |
ead838a8 |
63 | lttv/plugins/Makefile |
20514643 |
64 | lttv/plugins/examples/Makefile |
940dc6d6 |
65 | lttd/Makefile |
d7b45e73 |
66 | ltt/Makefile |
67 | include/Makefile |
68 | include/ltt/Makefile |
69 | include/lttv/Makefile]) |
9f14a497 |
70 | AC_OUTPUT |