ce0214a6 |
1 | # This file is part of the Linux Trace Toolkit viewer |
2 | # Copyright (C) 2003-2004 Mathieu Desnoyers |
3 | # |
4 | # This program is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License Version 2 as |
6 | # published by the Free Software Foundation; |
7 | # |
8 | # This program is distributed in the hope that it will be useful, |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | # GNU General Public License for more details. |
12 | # |
13 | # You should have received a copy of the GNU General Public License |
14 | # along with this program; if not, write to the Free Software |
15 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
16 | # MA 02111-1307, USA. |
17 | |
18 | |
19 | |
9f14a497 |
20 | # -*- Autoconf -*- |
21 | # Process this file with autoconf to produce a configure script. |
22 | |
23 | AC_PREREQ(2.57) |
24 | AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) |
b0f606e9 |
25 | #AC_WITH_LTDL # not needed ? |
6871f7d1 |
26 | AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.11-06022006) |
b445142a |
27 | AM_CONFIG_HEADER(config.h) |
39407106 |
28 | AM_PROG_LIBTOOL |
b00eda44 |
29 | |
b37f012b |
30 | AM_PATH_GLIB_2_0(2.4.0, ,AC_MSG_ERROR([glib is required in order to compile LinuxTraceToolkit - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule) |
9f14a497 |
31 | |
286ffb24 |
32 | AM_PATH_GTK_2_0(2.4.0, ,AC_MSG_ERROR([gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule) |
442137a6 |
33 | |
065f8f41 |
34 | AC_PATH_PROGS(BASH, bash) |
35 | |
ddd2aaff |
36 | AC_SYS_LARGEFILE |
37 | |
9f14a497 |
38 | # Checks for programs. |
39 | AC_PROG_CC |
40 | |
41 | # Checks for libraries. |
6591c2c3 |
42 | AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) ) |
21ff84a0 |
43 | #AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) ) |
0b74aa83 |
44 | |
86a65fdb |
45 | AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is |
46 | required in order to compile LinuxTraceToolkit])) |
9f14a497 |
47 | |
36ea7706 |
48 | |
49 | # pthread for lttd |
50 | AC_CHECK_LIB(pthread, pthread_join,[THREAD_LIBS="-lpthread"], AC_MSG_ERROR([LinuxThreads is required in order to compile lttd])) |
51 | |
9f14a497 |
52 | # Checks for header files. |
53 | AC_HEADER_STDC |
36ea7706 |
54 | AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h]) |
9f14a497 |
55 | |
c8faea22 |
56 | AC_ISC_POSIX |
57 | AC_PROG_CC |
58 | AM_PROG_CC_STDC |
59 | AC_HEADER_STDC |
60 | |
61 | pkg_modules="gtk+-2.0 >= 2.0.0" |
388a40e9 |
62 | PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) |
327a4314 |
63 | PACKAGE_CFLAGS="-Wall -Wformat" |
388a40e9 |
64 | AC_SUBST(PACKAGE_CFLAGS) |
65 | AC_SUBST(PACKAGE_LIBS) |
66 | |
9f14a497 |
67 | # Checks for typedefs, structures, and compiler characteristics. |
68 | AC_HEADER_STDBOOL |
69 | AC_C_CONST |
70 | AC_C_INLINE |
71 | AC_TYPE_OFF_T |
72 | AC_TYPE_SIZE_T |
73 | AC_HEADER_TIME |
74 | |
75 | # Checks for library functions. |
76 | AC_FUNC_ERROR_AT_LINE |
77 | AC_FUNC_MALLOC |
78 | AC_FUNC_SELECT_ARGTYPES |
79 | AC_CHECK_FUNCS([select]) |
80 | |
81 | #CPPFLAGS="$CPPFLAGS -I" |
82 | |
911b7a3c |
83 | AM_CONDITIONAL(LTTVSTATIC, test "$enable_lttvstatic" = yes) |
25fba836 |
84 | lttvlibdir="${libdir}/lttv" |
96cbee09 |
85 | lttvplugindir="${lttvlibdir}/plugins" |
6da3640c |
86 | #lttlibdir="${libdir}/ltt" |
0c56e138 |
87 | top_lttvdir="\$(top_srcdir)/lttv" |
13f86ce2 |
88 | top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow" |
fc17f7eb |
89 | |
13f86ce2 |
90 | DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)" |
273475ce |
91 | |
b00eda44 |
92 | #CPPFLAGS="${GLIB_CFLAGS}" |
93 | #AC_SUBST(CPPFLAGS) |
94 | |
d8f124de |
95 | lttincludedir="${includedir}/ltt" |
940dc6d6 |
96 | lttvincludedir="${includedir}/lttv" |
13f86ce2 |
97 | lttvwindowincludedir="${includedir}/lttvwindow" |
5cec0a15 |
98 | lttctlincludedir="${includedir}/liblttctl" |
6591c2c3 |
99 | |
100 | AC_SUBST(POPT_LIBS) |
86a65fdb |
101 | AC_SUBST(UTIL_LIBS) |
36ea7706 |
102 | AC_SUBST(THREAD_LIBS) |
25fba836 |
103 | AC_SUBST(lttvlibdir) |
6591c2c3 |
104 | AC_SUBST(lttvplugindir) |
6da3640c |
105 | #AC_SUBST(lttlibdir) |
6591c2c3 |
106 | AC_SUBST(top_lttvdir) |
107 | AC_SUBST(top_lttvwindowdir) |
108 | AC_SUBST(DEFAULT_INCLUDES) |
109 | AC_SUBST(lttincludedir) |
110 | AC_SUBST(lttvincludedir) |
13f86ce2 |
111 | AC_SUBST(lttvwindowincludedir) |
5cec0a15 |
112 | AC_SUBST(lttctlincludedir) |
940dc6d6 |
113 | |
9f14a497 |
114 | AC_CONFIG_FILES([Makefile |
0ce0410b |
115 | liblttctl/Makefile |
2cdb6fcb |
116 | lttctl/Makefile |
a100e2b7 |
117 | lttv/Makefile |
d8f124de |
118 | lttv/lttv/Makefile |
830eba15 |
119 | lttv/modules/Makefile |
0e9ba239 |
120 | lttv/modules/text/Makefile |
6ebfde5e |
121 | lttv/modules/gui/Makefile |
2864f4c5 |
122 | lttv/modules/gui/lttvwindow/Makefile |
a246c5e3 |
123 | lttv/modules/gui/interrupts/Makefile |
a4f37ccd |
124 | lttv/modules/gui/diskperformance/Makefile |
13f86ce2 |
125 | lttv/modules/gui/lttvwindow/lttvwindow/Makefile |
2864f4c5 |
126 | lttv/modules/gui/lttvwindow/pixmaps/Makefile |
88feb618 |
127 | lttv/modules/gui/controlflow/Makefile |
128 | lttv/modules/gui/detailedevents/Makefile |
129 | lttv/modules/gui/statistics/Makefile |
91ad3f0a |
130 | lttv/modules/gui/filter/Makefile |
294a2716 |
131 | lttv/modules/gui/tracecontrol/Makefile |
940dc6d6 |
132 | lttd/Makefile |
d7b45e73 |
133 | ltt/Makefile |
b1053af5 |
134 | doc/Makefile |
135 | doc/developer/Makefile |
136 | doc/developer/developer_guide/Makefile |
137 | doc/developer/developer_guide/docbook/Makefile |
138 | doc/developer/developer_guide/html/Makefile |
139 | doc/user/Makefile |
140 | doc/user/user_guide/Makefile |
141 | doc/user/user_guide/docbook/Makefile |
6145db87 |
142 | doc/user/user_guide/html/Makefile |
143 | facilities/Makefile]) |
9f14a497 |
144 | AC_OUTPUT |