git-svn-id: http://ltt.polymtl.ca/svn@189 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git] / ltt / branches / poly / configure.in
... / ...
CommitLineData
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.57)
5AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
6#AC_WITH_LTDL # not needed ?
7AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-06082003)
8AM_CONFIG_HEADER([config.h])
9AM_PROG_LIBTOOL
10
11AM_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)
12
13AM_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)
14
15# Checks for programs.
16AC_PROG_CC
17
18# Checks for libraries.
19AC_CHECK_LIB([popt], [poptGetNextOpt], ,AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
20
21# Checks for header files.
22AC_HEADER_STDC
23AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
24
25PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
26AC_SUBST(PACKAGE_CFLAGS)
27AC_SUBST(PACKAGE_LIBS)
28
29# Checks for typedefs, structures, and compiler characteristics.
30AC_HEADER_STDBOOL
31AC_C_CONST
32AC_C_INLINE
33AC_TYPE_OFF_T
34AC_TYPE_SIZE_T
35AC_HEADER_TIME
36
37# Checks for library functions.
38AC_FUNC_ERROR_AT_LINE
39AC_FUNC_MALLOC
40AC_FUNC_SELECT_ARGTYPES
41AC_CHECK_FUNCS([select])
42
43#CPPFLAGS="$CPPFLAGS -I"
44
45lttvplugindir="${libdir}/lttv/plugins"
46AC_SUBST(lttvplugindir)
47
48lttlibdir="${libdir}/ltt"
49AC_SUBST(lttlibdir)
50
51
52top_includedir="\$(top_srcdir)/include"
53AC_SUBST(top_includedir)
54
55DEFAULT_INCLUDES="-I\$(top_includedir)"
56AC_SUBST(DEFAULT_INCLUDES)
57
58#CPPFLAGS="${GLIB_CFLAGS}"
59#AC_SUBST(CPPFLAGS)
60
61lttvincludedir="${includedir}/lttv"
62AC_SUBST(lttvincludedir)
63
64lttincludedir="${includedir}/ltt"
65AC_SUBST(lttincludedir)
66
67AC_CONFIG_FILES([Makefile
68 lttv/Makefile
69 lttv/modules/Makefile
70 lttd/Makefile
71 ltt/Makefile
72 include/Makefile
73 include/ltt/Makefile
74 ltt/convert/Makefile
75 include/lttv/Makefile])
76AC_OUTPUT
77# lttv/modules/examples/Makefile
78# include/ltt/convert/Makefile
79# lttv/modules/gui/API/Makefile
80# lttv/modules/gui/Makefile
81# lttv/modules/text/Makefile
82# lttv/plugins/Makefile
83# lttv/plugins/examples/Makefile
84# lttv/modules/coreGUI/Makefile
This page took 0.021753 seconds and 4 git commands to generate.