1 # This file is part of the Linux Trace Toolkit viewer
2 # Copyright (C) 2003-2004 Mathieu Desnoyers
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;
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.
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,
21 # Process this file with autoconf to produce a configure script.
24 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
25 #AC_WITH_LTDL # not needed ?
26 AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.4-02022005)
27 AM_CONFIG_HEADER(config.h)
30 AM_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)
32 AM_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)
36 # Checks for programs.
39 # Checks for libraries.
40 AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
41 #AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) )
44 # Checks for header files.
46 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
53 pkg_modules="gtk+-2.0 >= 2.0.0"
54 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
55 AC_SUBST(PACKAGE_CFLAGS)
56 AC_SUBST(PACKAGE_LIBS)
58 # Checks for typedefs, structures, and compiler characteristics.
66 # Checks for library functions.
69 AC_FUNC_SELECT_ARGTYPES
70 AC_CHECK_FUNCS([select])
72 #CPPFLAGS="$CPPFLAGS -I"
74 AM_CONDITIONAL(LTTVSTATIC, test "$enable_lttvstatic" = yes)
75 lttvlibdir="${libdir}/lttv"
76 lttvplugindir="${lttvlibdir}/plugins"
77 lttlibdir="${libdir}/ltt"
78 top_lttvdir="\$(top_srcdir)/lttv"
79 top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow"
81 DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)"
83 #CPPFLAGS="${GLIB_CFLAGS}"
86 lttincludedir="${includedir}/ltt"
87 lttvincludedir="${includedir}/lttv"
88 lttvwindowincludedir="${includedir}/lttvwindow"
93 AC_SUBST(lttvplugindir)
96 AC_SUBST(top_lttvwindowdir)
97 AC_SUBST(DEFAULT_INCLUDES)
98 AC_SUBST(lttincludedir)
99 AC_SUBST(lttvincludedir)
100 AC_SUBST(lttvwindowincludedir)
102 AC_CONFIG_FILES([Makefile
105 lttv/modules/Makefile
106 lttv/modules/text/Makefile
107 lttv/modules/gui/Makefile
108 lttv/modules/gui/lttvwindow/Makefile
109 lttv/modules/gui/lttvwindow/lttvwindow/Makefile
110 lttv/modules/gui/lttvwindow/pixmaps/Makefile
111 lttv/modules/gui/controlflow/Makefile
112 lttv/modules/gui/detailedevents/Makefile
113 lttv/modules/gui/statistics/Makefile
114 lttv/modules/gui/filter/Makefile
119 doc/developer/Makefile
120 doc/developer/developer_guide/Makefile
121 doc/developer/developer_guide/docbook/Makefile
122 doc/developer/developer_guide/html/Makefile
124 doc/user/user_guide/Makefile
125 doc/user/user_guide/docbook/Makefile
126 doc/user/user_guide/html/Makefile])