2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
6 AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-29052003)
7 AM_CONFIG_HEADER([config.h])
11 # Checks for programs.
14 # Checks for libraries.
15 AC_CHECK_LIB([popt], [poptGetNextOpt])
16 AC_CHECK_LIB([gmodule-2.0], [g_module_open])
17 AC_CHECK_LIB([dl], [dlopen])
18 AC_CHECK_LIB([glib-2.0], [g_malloc])
20 # Checks for header files.
22 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
24 # Checks for typedefs, structures, and compiler characteristics.
32 # Checks for library functions.
35 AC_FUNC_SELECT_ARGTYPES
36 AC_CHECK_FUNCS([select])
38 #CPPFLAGS="$CPPFLAGS -I"
40 lttvplugindir="${libdir}/lttv/plugins"
41 AC_SUBST(lttvplugindir)
43 lttlibdir="${libdir}/ltt"
47 DEFAULT_INCLUDES="-I\$(top_srcdir)/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include"
48 AC_SUBST(DEFAULT_INCLUDES)
50 lttvincludedir="${includedir}/lttv"
51 AC_SUBST(lttvincludedir)
53 lttincludedir="${includedir}/ltt"
54 AC_SUBST(lttincludedir)
56 AC_CONFIG_FILES([Makefile
59 lttv/modules/gui/Makefile
60 lttv/modules/text/Makefile
62 lttv/plugins/examples/Makefile
67 include/lttv/Makefile])