1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([gst-tracelib], [0.2.1], [ensonic@users.sf.net])
AC_CONFIG_SRCDIR([src/gsttracelib.c])
AC_CONFIG_HEADER([config.h])
dnl Initialise the automake tool
AM_INIT_AUTOMAKE([-Wall check-news])
# Support silent build rules, requires at least automake-1.11. Disable
# by either passing --disable-silent-rules to configure or passing V=1
# to make
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lrt':
AC_CHECK_LIB([rt], [main])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([ \
dlfcn.h netdb.h malloc.h stdlib.h string.h unistd.h \
netinet/in.h \
sys/resource.h sys/socket.h sys/time.h sys/types.h \
])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
dnl enable debug tracing
AC_MSG_CHECKING(whether to enable debug tracing)
AC_ARG_ENABLE(
trace,
AS_HELP_STRING([--enable-trace],[enable debug tracing (default=no)]),
,
[enable_trace="no"])
AC_MSG_RESULT($enable_trace)
if test "$enable_trace" = "yes"; then
AC_DEFINE(ENABLE_TRACE, [1], [enable debug tracing])
fi
# Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([clock_gettime getrusage mallinfo strerror])
dnl Checks for libraries.
PKG_CHECK_MODULES(BASE_DEPS, \
glib-2.0 >= 2.10.0 gstreamer-0.10 >= 0.10.0 \
)
AC_SUBST(BASE_DEPS_LIBS)
AC_SUBST(BASE_DEPS_CFLAGS)
# libcgraph >= 2.20.0
PKG_CHECK_MODULES(UI_DEPS, \
glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0 gtk+-2.0 >= 2.10.0 \
gdk-pixbuf-2.0 >= 2.10.0 libgvc >= 2.20.0 goocanvas >= 0.13, \
AM_CONDITIONAL(BUILD_UI, true),
AM_CONDITIONAL(BUILD_UI, false)
)
AC_SUBST(UI_DEPS_LIBS)
AC_SUBST(UI_DEPS_CFLAGS)
dnl check for desktop utilities
AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database)
AC_CONFIG_FILES(
Makefile \
src/Makefile \
src/gsttl \
src/ui/Makefile \
tests/Makefile \
)
AC_OUTPUT
|