Moving files around to get rid of the shared include tree. Some other
[lttv.git] / ltt / branches / poly / configure.in
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 ?
26 AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-30092003)
27 AM_CONFIG_HEADER(config.h)
28 AM_PROG_LIBTOOL
29
30 AM_PATH_GLIB_2_0(2.0.0, ,AC_MSG_ERROR([glib is required in order to compile LinuxTraceToolkit - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
31
32 AM_PATH_GTK_2_0(2.0.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.
35 AC_PROG_CC
36
37 # Checks for libraries.
38 AC_CHECK_LIB([popt], [poptGetNextOpt], ,AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
39
40 # Checks for header files.
41 AC_HEADER_STDC
42 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
43
44 AC_ISC_POSIX
45 AC_PROG_CC
46 AM_PROG_CC_STDC
47 AC_HEADER_STDC
48
49 pkg_modules="gtk+-2.0 >= 2.0.0"
50 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
51 AC_SUBST(PACKAGE_CFLAGS)
52 AC_SUBST(PACKAGE_LIBS)
53
54 # Checks for typedefs, structures, and compiler characteristics.
55 AC_HEADER_STDBOOL
56 AC_C_CONST
57 AC_C_INLINE
58 AC_TYPE_OFF_T
59 AC_TYPE_SIZE_T
60 AC_HEADER_TIME
61
62 # Checks for library functions.
63 AC_FUNC_ERROR_AT_LINE
64 AC_FUNC_MALLOC
65 AC_FUNC_SELECT_ARGTYPES
66 AC_CHECK_FUNCS([select])
67
68 #CPPFLAGS="$CPPFLAGS -I"
69
70 lttvlibdir="${libdir}/lttv"
71 AC_SUBST(lttvlibdir)
72
73 lttvplugindir="${lttvlibdir}/plugins"
74 AC_SUBST(lttvplugindir)
75
76 lttlibdir="${libdir}/ltt"
77 AC_SUBST(lttlibdir)
78
79
80 top_guidir="\$(top_srcdir)/lttv/modules/gui"
81 AC_SUBST(top_guidir)
82
83 DEFAULT_INCLUDES="-I\$(top_guidir) -I\$(top_srcdir)"
84 AC_SUBST(DEFAULT_INCLUDES)
85
86 #CPPFLAGS="${GLIB_CFLAGS}"
87 #AC_SUBST(CPPFLAGS)
88
89 lttincludedir="${includedir}/ltt"
90 AC_SUBST(lttincludedir)
91
92 lttvincludedir="${includedir}/lttv"
93 AC_SUBST(lttvincludedir)
94
95 lttvguiincludedir="${includedir}/lttvgui"
96 AC_SUBST(lttvguiincludedir)
97
98 AC_CONFIG_FILES([Makefile
99 lttv/Makefile
100 lttv/lttv/Makefile
101 lttv/modules/Makefile
102 lttv/modules/text/Makefile
103 lttv/modules/gui/Makefile
104 lttv/modules/gui/lttvgui/Makefile
105 lttv/modules/gui/main/Makefile
106 lttv/modules/gui/main/src/Makefile
107 lttv/modules/gui/main/pixmaps/Makefile
108 lttv/modules/gui/icons/Makefile
109 lttv/modules/gui/controlflow/Makefile
110 lttv/modules/gui/detailedevents/Makefile
111 lttv/modules/gui/statistics/Makefile
112 lttd/Makefile
113 ltt/Makefile
114 ltt/convert/Makefile])
115 AC_OUTPUT
This page took 0.031852 seconds and 5 git commands to generate.