lttd first write (partial)
[lttv.git] / ltt / branches / poly / 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(LinuxTraceToolkitViewer,0.4-02022005)
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
34# Checks for programs.
35AC_PROG_CC
36
37# Checks for libraries.
38AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
39#AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) )
40
41
42# Checks for header files.
43AC_HEADER_STDC
44AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
45
46AC_ISC_POSIX
47AC_PROG_CC
48AM_PROG_CC_STDC
49AC_HEADER_STDC
50
51pkg_modules="gtk+-2.0 >= 2.0.0"
52PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
53AC_SUBST(PACKAGE_CFLAGS)
54AC_SUBST(PACKAGE_LIBS)
55
56# Checks for typedefs, structures, and compiler characteristics.
57AC_HEADER_STDBOOL
58AC_C_CONST
59AC_C_INLINE
60AC_TYPE_OFF_T
61AC_TYPE_SIZE_T
62AC_HEADER_TIME
63
64# Checks for library functions.
65AC_FUNC_ERROR_AT_LINE
66AC_FUNC_MALLOC
67AC_FUNC_SELECT_ARGTYPES
68AC_CHECK_FUNCS([select])
69
70#CPPFLAGS="$CPPFLAGS -I"
71
72AM_CONDITIONAL(LTTVSTATIC, test "$enable_lttvstatic" = yes)
73lttvlibdir="${libdir}/lttv"
74lttvplugindir="${lttvlibdir}/plugins"
75lttlibdir="${libdir}/ltt"
76top_lttvdir="\$(top_srcdir)/lttv"
77top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow"
78
79DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)"
80
81#CPPFLAGS="${GLIB_CFLAGS}"
82#AC_SUBST(CPPFLAGS)
83
84lttincludedir="${includedir}/ltt"
85lttvincludedir="${includedir}/lttv"
86lttvwindowincludedir="${includedir}/lttvwindow"
87
88
89AC_SUBST(POPT_LIBS)
90AC_SUBST(lttvlibdir)
91AC_SUBST(lttvplugindir)
92AC_SUBST(lttlibdir)
93AC_SUBST(top_lttvdir)
94AC_SUBST(top_lttvwindowdir)
95AC_SUBST(DEFAULT_INCLUDES)
96AC_SUBST(lttincludedir)
97AC_SUBST(lttvincludedir)
98AC_SUBST(lttvwindowincludedir)
99
100AC_CONFIG_FILES([Makefile
101 lttv/Makefile
102 lttv/lttv/Makefile
103 lttv/modules/Makefile
104 lttv/modules/text/Makefile
105 lttv/modules/gui/Makefile
106 lttv/modules/gui/lttvwindow/Makefile
107 lttv/modules/gui/lttvwindow/lttvwindow/Makefile
108 lttv/modules/gui/lttvwindow/pixmaps/Makefile
109 lttv/modules/gui/controlflow/Makefile
110 lttv/modules/gui/detailedevents/Makefile
111 lttv/modules/gui/statistics/Makefile
112 lttv/modules/gui/filter/Makefile
113 lttd/Makefile
114 ltt/Makefile
115 ltt/convert/Makefile
116 doc/Makefile
117 doc/developer/Makefile
118 doc/developer/developer_guide/Makefile
119 doc/developer/developer_guide/docbook/Makefile
120 doc/developer/developer_guide/html/Makefile
121 doc/user/Makefile
122 doc/user/user_guide/Makefile
123 doc/user/user_guide/docbook/Makefile
124 doc/user/user_guide/html/Makefile])
125AC_OUTPUT
This page took 0.02189 seconds and 4 git commands to generate.