change traceread install lib path
[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.6.3-20092005)
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# Checks for header files.
49AC_HEADER_STDC
50AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
51
52AC_ISC_POSIX
53AC_PROG_CC
54AM_PROG_CC_STDC
55AC_HEADER_STDC
56
57pkg_modules="gtk+-2.0 >= 2.0.0"
58PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
59PACKAGE_CFLAGS="-Wall -Wformat"
60AC_SUBST(PACKAGE_CFLAGS)
61AC_SUBST(PACKAGE_LIBS)
62
63# Checks for typedefs, structures, and compiler characteristics.
64AC_HEADER_STDBOOL
65AC_C_CONST
66AC_C_INLINE
67AC_TYPE_OFF_T
68AC_TYPE_SIZE_T
69AC_HEADER_TIME
70
71# Checks for library functions.
72AC_FUNC_ERROR_AT_LINE
73AC_FUNC_MALLOC
74AC_FUNC_SELECT_ARGTYPES
75AC_CHECK_FUNCS([select])
76
77#CPPFLAGS="$CPPFLAGS -I"
78
79AM_CONDITIONAL(LTTVSTATIC, test "$enable_lttvstatic" = yes)
80#lttvlibdir="${libdir}/lttv"
81lttvplugindir="${lttvlibdir}/plugins"
82#lttlibdir="${libdir}/ltt"
83top_lttvdir="\$(top_srcdir)/lttv"
84top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow"
85
86DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)"
87
88#CPPFLAGS="${GLIB_CFLAGS}"
89#AC_SUBST(CPPFLAGS)
90
91lttincludedir="${includedir}/ltt"
92lttvincludedir="${includedir}/lttv"
93lttvwindowincludedir="${includedir}/lttvwindow"
94lttctlincludedir="${includedir}/liblttctl"
95
96AC_SUBST(POPT_LIBS)
97AC_SUBST(UTIL_LIBS)
98#AC_SUBST(lttvlibdir)
99AC_SUBST(lttvplugindir)
100#AC_SUBST(lttlibdir)
101AC_SUBST(top_lttvdir)
102AC_SUBST(top_lttvwindowdir)
103AC_SUBST(DEFAULT_INCLUDES)
104AC_SUBST(lttincludedir)
105AC_SUBST(lttvincludedir)
106AC_SUBST(lttvwindowincludedir)
107AC_SUBST(lttctlincludedir)
108
109AC_CONFIG_FILES([Makefile
110 liblttctl/Makefile
111 lttctl/Makefile
112 lttv/Makefile
113 lttv/lttv/Makefile
114 lttv/modules/Makefile
115 lttv/modules/text/Makefile
116 lttv/modules/gui/Makefile
117 lttv/modules/gui/lttvwindow/Makefile
118 lttv/modules/gui/lttvwindow/lttvwindow/Makefile
119 lttv/modules/gui/lttvwindow/pixmaps/Makefile
120 lttv/modules/gui/controlflow/Makefile
121 lttv/modules/gui/detailedevents/Makefile
122 lttv/modules/gui/statistics/Makefile
123 lttv/modules/gui/filter/Makefile
124 lttv/modules/gui/tracecontrol/Makefile
125 lttd/Makefile
126 ltt/Makefile
127 doc/Makefile
128 doc/developer/Makefile
129 doc/developer/developer_guide/Makefile
130 doc/developer/developer_guide/docbook/Makefile
131 doc/developer/developer_guide/html/Makefile
132 doc/user/Makefile
133 doc/user/user_guide/Makefile
134 doc/user/user_guide/docbook/Makefile
135 doc/user/user_guide/html/Makefile
136 facilities/Makefile])
137AC_OUTPUT
This page took 0.021903 seconds and 4 git commands to generate.