back
[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
25AC_ISC_POSIX
26AC_PROG_CC
27AM_PROG_CC_STDC
28AC_HEADER_STDC
29
30pkg_modules="gtk+-2.0 >= 2.0.0"
31PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
32AC_SUBST(PACKAGE_CFLAGS)
33AC_SUBST(PACKAGE_LIBS)
34
35# Checks for typedefs, structures, and compiler characteristics.
36AC_HEADER_STDBOOL
37AC_C_CONST
38AC_C_INLINE
39AC_TYPE_OFF_T
40AC_TYPE_SIZE_T
41AC_HEADER_TIME
42
43# Checks for library functions.
44AC_FUNC_ERROR_AT_LINE
45AC_FUNC_MALLOC
46AC_FUNC_SELECT_ARGTYPES
47AC_CHECK_FUNCS([select])
48
49#CPPFLAGS="$CPPFLAGS -I"
50
51lttvplugindir="${libdir}/lttv/plugins"
52AC_SUBST(lttvplugindir)
53
54lttlibdir="${libdir}/ltt"
55AC_SUBST(lttlibdir)
56
57
58top_includedir="\$(top_srcdir)/include"
59AC_SUBST(top_includedir)
60
61DEFAULT_INCLUDES="-I\$(top_includedir) -I\$(top_srcdir)"
62AC_SUBST(DEFAULT_INCLUDES)
63
64#CPPFLAGS="${GLIB_CFLAGS}"
65#AC_SUBST(CPPFLAGS)
66
67lttvincludedir="${includedir}/lttv"
68AC_SUBST(lttvincludedir)
69
70lttincludedir="${includedir}/ltt"
71AC_SUBST(lttincludedir)
72
73AC_CONFIG_FILES([Makefile
74 lttv/Makefile
75 lttv/modules/Makefile
76 lttv/modules/gui/Makefile
77 lttv/modules/gui/mainWin/Makefile
78 lttv/modules/gui/mainWin/src/Makefile
79 lttv/modules/gui/API/Makefile
80 lttd/Makefile
81 ltt/Makefile
82 include/Makefile
83 include/ltt/Makefile
84 ltt/convert/Makefile
85 include/lttv/Makefile])
86AC_OUTPUT
87# lttv/modules/examples/Makefile
88# include/ltt/convert/Makefile
89# lttv/modules/gui/API/Makefile
90# lttv/modules/gui/Makefile
91# lttv/modules/text/Makefile
92# lttv/plugins/Makefile
93# lttv/plugins/examples/Makefile
94# lttv/modules/coreGUI/Makefile
This page took 0.022447 seconds and 4 git commands to generate.