liblttctl: switch_timer for all channels fix
[ltt-control.git] / configure.in
... / ...
CommitLineData
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
23AC_PREREQ(2.57)
24AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
25#AC_WITH_LTDL # not needed ?
26AM_INIT_AUTOMAKE(ltt-control,0.86-19052010)
27AM_CONFIG_HEADER(config.h)
28AM_PROG_LIBTOOL
29
30AC_PATH_PROGS(BASH, bash)
31
32AC_SYS_LARGEFILE
33
34# Checks for programs.
35AC_PROG_CC
36
37AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is
38required in order to compile LinuxTraceToolkit]))
39
40
41# pthread for lttd
42AC_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.
45AC_HEADER_STDC
46AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h])
47
48AC_ISC_POSIX
49AC_PROG_CC
50AM_PROG_CC_STDC
51AC_HEADER_STDC
52
53PACKAGE_CFLAGS="-Wall -Wformat"
54AC_SUBST(PACKAGE_CFLAGS)
55AC_SUBST(PACKAGE_LIBS)
56
57# Checks for typedefs, structures, and compiler characteristics.
58AC_HEADER_STDBOOL
59AC_C_CONST
60AC_C_INLINE
61AC_TYPE_OFF_T
62AC_TYPE_SIZE_T
63AC_HEADER_TIME
64
65# Checks for library functions.
66AC_FUNC_ERROR_AT_LINE
67#AC_FUNC_MALLOC
68AC_FUNC_SELECT_ARGTYPES
69AC_CHECK_FUNCS([select])
70
71#CPPFLAGS="$CPPFLAGS -I"
72
73DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir)"
74
75#CPPFLAGS="${GLIB_CFLAGS}"
76#AC_SUBST(CPPFLAGS)
77
78lttctlincludedir="${includedir}/liblttctl"
79liblttdincludedir="${includedir}/liblttd"
80
81AC_SUBST(lttctlincludedir)
82AC_SUBST(liblttdincludedir)
83AC_SUBST(UTIL_LIBS)
84AC_SUBST(THREAD_LIBS)
85AC_SUBST(DEFAULT_INCLUDES)
86
87AC_CONFIG_FILES([Makefile
88 liblttctl/Makefile
89 lttctl/Makefile
90 liblttd/Makefile
91 lttd/Makefile
92 specs/Makefile])
93AC_OUTPUT
This page took 0.022005 seconds and 4 git commands to generate.