AC_PREREQ(2.63) AC_INIT([cgp],[0.1.0],[http://blogs.igalia.com/dape],[cgp]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign]) AM_MAINTAINER_MODE m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) # Checks for programs. AC_PROG_CC AM_PATH_GLIB_2_0 # Initialize libtool LT_PREREQ([2.2.6]) LT_INIT([disable-static]) GETTEXT_PACKAGE=cgp AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The prefix for our gettext translation domains.]) IT_PROG_INTLTOOL(0.26) AM_GLIB_GNU_GETTEXT PKG_PROG_PKG_CONFIG([0.22]) # GConf stuff AC_PATH_PROG(GCONFTOOL, gconftool-2, no) AM_GCONF_SOURCE_2 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) desktopentrydir=$datadir/applications AC_SUBST(desktopentrydir) # Stay command-line compatible with the gnome-common configure option. Here # minimum/yes/maximum are the same, however. AC_ARG_ENABLE(compile_warnings, AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],[Turn on compiler warnings]),, enable_compile_warnings=error) changequote(,)dnl if test "$enable_compile_warnings" != no ; then if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac case " $CFLAGS " in *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;; esac if test "$enable_compile_warnings" = error ; then case " $CFLAGS " in *[\ \ ]-Werror[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Werror" ;; esac fi fi fi changequote([,])dnl AC_CONFIG_FILES([ Makefile data/Makefile data/style/Makefile src/Makefile po/Makefile.in ]) AC_OUTPUT