initial move
[ltt-control.git] / ltt-control / configure.in
CommitLineData
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
23AC_PREREQ(2.57)
24AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
25#AC_WITH_LTDL # not needed ?
26AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.31-11032006)
27AM_CONFIG_HEADER(config.h)
28AM_PROG_LIBTOOL
29
30AM_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)
31
32AM_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)
33
34AC_PATH_PROGS(BASH, bash)
35
36AC_SYS_LARGEFILE
37
38# Checks for programs.
39AC_PROG_CC
40
41# Checks for libraries.
42AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
43#AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) )
44
45AC_CHECK_LIB([util], [forkpty], UTIL_LIBS="-lutil", AC_MSG_ERROR([libutil is
46required in order to compile LinuxTraceToolkit]))
47
48
49# pthread for lttd
50AC_CHECK_LIB(pthread, pthread_join,[THREAD_LIBS="-lpthread"], AC_MSG_ERROR([LinuxThreads is required in order to compile lttd]))
51
52# Checks for header files.
53AC_HEADER_STDC
54AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h])
55
56AC_ISC_POSIX
57AC_PROG_CC
58AM_PROG_CC_STDC
59AC_HEADER_STDC
60
61pkg_modules="gtk+-2.0 >= 2.0.0"
62PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
63PACKAGE_CFLAGS="-Wall -Wformat"
64AC_SUBST(PACKAGE_CFLAGS)
65AC_SUBST(PACKAGE_LIBS)
66
67# Checks for typedefs, structures, and compiler characteristics.
68AC_HEADER_STDBOOL
69AC_C_CONST
70AC_C_INLINE
71AC_TYPE_OFF_T
72AC_TYPE_SIZE_T
73AC_HEADER_TIME
74
75# Checks for library functions.
76AC_FUNC_ERROR_AT_LINE
77#AC_FUNC_MALLOC
78AC_FUNC_SELECT_ARGTYPES
79AC_CHECK_FUNCS([select])
80
81#CPPFLAGS="$CPPFLAGS -I"
82
83AM_CONDITIONAL(LTTVSTATIC, test "$enable_lttvstatic" = yes)
84lttvlibdir="${libdir}/lttv"
85lttvplugindir="${lttvlibdir}/plugins"
86#lttlibdir="${libdir}/ltt"
87top_lttvdir="\$(top_srcdir)/lttv"
88top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow"
89
90DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)"
91
92#CPPFLAGS="${GLIB_CFLAGS}"
93#AC_SUBST(CPPFLAGS)
94
95lttincludedir="${includedir}/ltt"
96lttvincludedir="${includedir}/lttv"
97lttvwindowincludedir="${includedir}/lttvwindow"
98lttctlincludedir="${includedir}/liblttctl"
99
100AC_SUBST(POPT_LIBS)
101AC_SUBST(UTIL_LIBS)
102AC_SUBST(THREAD_LIBS)
103AC_SUBST(lttvlibdir)
104AC_SUBST(lttvplugindir)
105#AC_SUBST(lttlibdir)
106AC_SUBST(top_lttvdir)
107AC_SUBST(top_lttvwindowdir)
108AC_SUBST(DEFAULT_INCLUDES)
109AC_SUBST(lttincludedir)
110AC_SUBST(lttvincludedir)
111AC_SUBST(lttvwindowincludedir)
112AC_SUBST(lttctlincludedir)
113
114AC_CONFIG_FILES([Makefile
115 liblttctl/Makefile
116 lttctl/Makefile
117 lttv/Makefile
118 lttv/lttv/Makefile
119 lttv/modules/Makefile
120 lttv/modules/text/Makefile
121 lttv/modules/gui/Makefile
122 lttv/modules/gui/lttvwindow/Makefile
123 lttv/modules/gui/interrupts/Makefile
124 lttv/modules/gui/diskperformance/Makefile
125 lttv/modules/gui/lttvwindow/lttvwindow/Makefile
126 lttv/modules/gui/lttvwindow/pixmaps/Makefile
127 lttv/modules/gui/controlflow/Makefile
128 lttv/modules/gui/detailedevents/Makefile
129 lttv/modules/gui/statistics/Makefile
130 lttv/modules/gui/filter/Makefile
131 lttv/modules/gui/tracecontrol/Makefile
132 lttd/Makefile
133 ltt/Makefile
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
142 doc/user/user_guide/html/Makefile
143 facilities/Makefile])
144AC_OUTPUT
This page took 0.027344 seconds and 4 git commands to generate.