2727692a |
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 | |
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) |
25 | #AC_WITH_LTDL # not needed ? |
efae29c4 |
26 | AM_INIT_AUTOMAKE(ltt-control,0.51-12082008) |
2727692a |
27 | AM_CONFIG_HEADER(config.h) |
28 | AM_PROG_LIBTOOL |
29 | |
2727692a |
30 | AC_PATH_PROGS(BASH, bash) |
31 | |
32 | AC_SYS_LARGEFILE |
33 | |
34 | # Checks for programs. |
35 | AC_PROG_CC |
36 | |
2727692a |
37 | AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is |
38 | required in order to compile LinuxTraceToolkit])) |
39 | |
40 | |
41 | # pthread for lttd |
42 | AC_CHECK_LIB(pthread, pthread_join,[THREAD_LIBS="-lpthread"], AC_MSG_ERROR([LinuxThreads is required in order to compile lttd])) |
43 | |
44 | # Checks for header files. |
45 | AC_HEADER_STDC |
46 | AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h]) |
47 | |
48 | AC_ISC_POSIX |
49 | AC_PROG_CC |
50 | AM_PROG_CC_STDC |
51 | AC_HEADER_STDC |
52 | |
2727692a |
53 | PACKAGE_CFLAGS="-Wall -Wformat" |
54 | AC_SUBST(PACKAGE_CFLAGS) |
55 | AC_SUBST(PACKAGE_LIBS) |
56 | |
57 | # Checks for typedefs, structures, and compiler characteristics. |
58 | AC_HEADER_STDBOOL |
59 | AC_C_CONST |
60 | AC_C_INLINE |
61 | AC_TYPE_OFF_T |
62 | AC_TYPE_SIZE_T |
63 | AC_HEADER_TIME |
64 | |
65 | # Checks for library functions. |
66 | AC_FUNC_ERROR_AT_LINE |
67 | #AC_FUNC_MALLOC |
68 | AC_FUNC_SELECT_ARGTYPES |
69 | AC_CHECK_FUNCS([select]) |
70 | |
71 | #CPPFLAGS="$CPPFLAGS -I" |
72 | |
7137df55 |
73 | DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir)" |
2727692a |
74 | |
75 | #CPPFLAGS="${GLIB_CFLAGS}" |
76 | #AC_SUBST(CPPFLAGS) |
77 | |
b2cea388 |
78 | lttctlincludedir="${includedir}/liblttctl" |
79 | |
80 | AC_SUBST(lttctlincludedir) |
2727692a |
81 | AC_SUBST(UTIL_LIBS) |
82 | AC_SUBST(THREAD_LIBS) |
2727692a |
83 | AC_SUBST(DEFAULT_INCLUDES) |
2727692a |
84 | |
85 | AC_CONFIG_FILES([Makefile |
86 | liblttctl/Makefile |
87 | lttctl/Makefile |
3c26b92a |
88 | lttd/Makefile |
3c26b92a |
89 | specs/Makefile]) |
2727692a |
90 | AC_OUTPUT |