Don't fetch url. Only fetch just when we need it (to play the files).
[clutter-grilo-player:cgp.git] / configure.ac
1 AC_PREREQ(2.63)
2 AC_INIT([cgp],[0.1.0],[http://blogs.igalia.com/dape],[cgp])
3
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])
8
9 AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign])
10 AM_MAINTAINER_MODE
11
12 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
13
14 # Checks for programs.
15 AC_PROG_CC
16 AM_PATH_GLIB_2_0
17
18 # Initialize libtool
19 LT_PREREQ([2.2.6])
20 LT_INIT([disable-static])
21
22 GETTEXT_PACKAGE=cgp
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)
27 AM_GLIB_GNU_GETTEXT
28
29 PKG_PROG_PKG_CONFIG([0.22])
30
31 # GConf stuff
32 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
33 AM_GCONF_SOURCE_2
34
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)
36
37 desktopentrydir=$datadir/applications   
38 AC_SUBST(desktopentrydir)
39
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)
45
46 changequote(,)dnl
47 if test "$enable_compile_warnings" != no ; then
48   if test "x$GCC" = "xyes"; then
49     case " $CFLAGS " in
50     *[\ \       ]-Wall[\ \      ]*) ;;
51     *) CFLAGS="$CFLAGS -Wall" ;;
52     esac
53     case " $CFLAGS " in
54     *[\ \       ]-Wmissing-prototypes[\ \       ]*) ;;
55     *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
56     esac
57     if test "$enable_compile_warnings" = error ; then
58       case " $CFLAGS " in
59       *[\ \     ]-Werror[\ \    ]*) ;;
60       *) CFLAGS="$CFLAGS -Werror" ;;
61       esac
62     fi
63   fi
64 fi
65 changequote([,])dnl
66
67 AC_CONFIG_FILES([
68   Makefile
69   data/Makefile
70   data/style/Makefile
71   src/Makefile
72   po/Makefile.in
73 ])
74 AC_OUTPUT