# -*- 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