2 AC_INIT([cgp],[0.1.0],[http://blogs.igalia.com/dape],[cgp])
4 AC_CONFIG_HEADERS([config.h])
5 AC_CONFIG_SRCDIR([src/main.c])
6 AC_CONFIG_MACRO_DIR([m4])
7 AC_CONFIG_AUX_DIR([config])
9 AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign])
12 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
14 # Checks for programs.
20 LT_INIT([disable-static])
23 AC_SUBST(GETTEXT_PACKAGE)
24 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
25 [The prefix for our gettext translation domains.])
26 IT_PROG_INTLTOOL(0.26)
29 PKG_PROG_PKG_CONFIG([0.22])
32 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
35 PKG_CHECK_MODULES(CGP, clutter-1.0 >= 1.1.3 clutter-gst-1.0 mx-1.0 >= 0.99.2 grilo-0.1 libsoup-2.4)
37 desktopentrydir=$datadir/applications
38 AC_SUBST(desktopentrydir)
40 # Stay command-line compatible with the gnome-common configure option. Here
41 # minimum/yes/maximum are the same, however.
42 AC_ARG_ENABLE(compile_warnings,
43 AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],[Turn on compiler warnings]),,
44 enable_compile_warnings=error)
47 if test "$enable_compile_warnings" != no ; then
48 if test "x$GCC" = "xyes"; then
50 *[\ \ ]-Wall[\ \ ]*) ;;
51 *) CFLAGS="$CFLAGS -Wall" ;;
54 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
55 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
57 if test "$enable_compile_warnings" = error ; then
59 *[\ \ ]-Werror[\ \ ]*) ;;
60 *) CFLAGS="$CFLAGS -Werror" ;;