2010-02-06 20:19:41 -05:00
|
|
|
AC_PREREQ(2.63)
|
2010-11-08 15:14:09 -05:00
|
|
|
AC_INIT([gnome-shell],[2.91.2],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell])
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CONFIG_SRCDIR([src/shell-global.c])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CONFIG_AUX_DIR([config])
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2010-02-22 18:33:31 -05:00
|
|
|
AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign])
|
2008-10-31 00:22:44 -04:00
|
|
|
AM_MAINTAINER_MODE
|
2010-02-12 23:42:47 -05:00
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
# Checks for programs.
|
2008-10-31 00:22:44 -04:00
|
|
|
AC_PROG_CC
|
2009-01-19 18:06:59 -05:00
|
|
|
# Needed for per-target cflags, like in gnomeshell-taskpanel
|
|
|
|
AM_PROG_CC_C_O
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
# Initialize libtool
|
|
|
|
LT_PREREQ([2.2.6])
|
|
|
|
LT_INIT([disable-static])
|
|
|
|
|
2010-02-12 23:42:47 -05:00
|
|
|
GETTEXT_PACKAGE=gnome-shell
|
2010-02-23 10:43:39 -05:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
|
|
|
[The prefix for our gettext translation domains.])
|
2010-02-12 23:42:47 -05:00
|
|
|
IT_PROG_INTLTOOL(0.26)
|
2009-07-24 18:11:14 -04:00
|
|
|
AM_GLIB_GNU_GETTEXT
|
2010-02-06 20:19:41 -05:00
|
|
|
|
|
|
|
PKG_PROG_PKG_CONFIG([0.22])
|
2009-07-24 18:11:14 -04:00
|
|
|
|
2010-02-12 23:42:47 -05:00
|
|
|
# GConf stuff
|
2009-06-30 17:29:20 -04:00
|
|
|
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
|
2009-04-23 10:46:36 -04:00
|
|
|
AM_GCONF_SOURCE_2
|
|
|
|
|
2010-05-05 17:05:42 -04:00
|
|
|
GLIB_GSETTINGS
|
|
|
|
|
2009-08-31 11:52:18 -04:00
|
|
|
# Get a value to substitute into gnome-shell.in
|
|
|
|
AM_PATH_PYTHON([2.5])
|
|
|
|
AC_SUBST(PYTHON)
|
|
|
|
|
2009-03-13 17:14:31 -04:00
|
|
|
# We need at least this, since gst_plugin_register_static() was added
|
|
|
|
# in 0.10.16, but nothing older than 0.10.21 has been tested.
|
|
|
|
GSTREAMER_MIN_VERSION=0.10.16
|
|
|
|
|
|
|
|
recorder_modules=
|
|
|
|
build_recorder=false
|
|
|
|
AC_MSG_CHECKING([for GStreamer (needed for recording functionality)])
|
|
|
|
if $PKG_CONFIG --exists gstreamer-0.10 '>=' $GSTREAMER_MIN_VERSION ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
build_recorder=true
|
|
|
|
recorder_modules="gstreamer-0.10 gstreamer-base-0.10 xfixes"
|
2009-07-29 13:00:11 -04:00
|
|
|
PKG_CHECK_MODULES(TEST_SHELL_RECORDER, $recorder_modules clutter-1.0)
|
2009-03-13 17:14:31 -04:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_RECORDER, $build_recorder)
|
|
|
|
|
2010-09-16 13:28:15 -04:00
|
|
|
CLUTTER_MIN_VERSION=1.3.14
|
2010-05-25 15:12:22 -04:00
|
|
|
GOBJECT_INTROSPECTION_MIN_VERSION=0.6.11
|
|
|
|
GJS_MIN_VERSION=0.7
|
2010-10-04 15:07:37 -04:00
|
|
|
MUTTER_MIN_VERSION=2.91.0
|
2010-10-12 18:23:23 -04:00
|
|
|
GTK_MIN_VERSION=2.91.0
|
2010-05-05 17:05:42 -04:00
|
|
|
GIO_MIN_VERSION=2.25.9
|
2010-02-11 15:24:13 -05:00
|
|
|
|
2009-08-11 11:32:58 -04:00
|
|
|
# Collect more than 20 libraries for a prize!
|
2010-05-05 17:05:42 -04:00
|
|
|
PKG_CHECK_MODULES(MUTTER_PLUGIN, gio-2.0 >= $GIO_MIN_VERSION
|
|
|
|
gio-unix-2.0 dbus-glib-1
|
2010-06-19 14:26:16 -04:00
|
|
|
gtk+-3.0 >= $GTK_MIN_VERSION
|
2010-03-23 14:07:55 -04:00
|
|
|
mutter-plugins >= $MUTTER_MIN_VERSION
|
2010-10-21 10:50:30 -04:00
|
|
|
gjs-internals-1.0 >= $GJS_MIN_VERSION
|
2010-03-23 14:07:55 -04:00
|
|
|
libgnome-menu $recorder_modules gconf-2.0
|
2010-06-19 14:26:16 -04:00
|
|
|
gdk-x11-3.0
|
2010-02-11 15:24:13 -05:00
|
|
|
clutter-x11-1.0 >= $CLUTTER_MIN_VERSION
|
|
|
|
clutter-glx-1.0 >= $CLUTTER_MIN_VERSION
|
2010-02-09 12:42:07 -05:00
|
|
|
libstartup-notification-1.0
|
2010-07-22 20:39:44 -04:00
|
|
|
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
|
|
|
|
libcanberra)
|
2010-02-24 11:29:44 -05:00
|
|
|
|
|
|
|
saved_CFLAGS=$CFLAGS
|
|
|
|
saved_LIBS=$LIBS
|
|
|
|
CFLAGS=$MUTTER_PLUGIN_CFLAGS
|
|
|
|
LIBS=$MUTTER_PLUGIN_LIBS
|
2010-09-24 14:02:04 -04:00
|
|
|
# sn_startup_sequence_get_application_id, we can replace with a version check later
|
|
|
|
AC_CHECK_FUNCS(JS_NewGlobalObject sn_startup_sequence_get_application_id)
|
2010-02-24 11:29:44 -05:00
|
|
|
CFLAGS=$saved_CFLAGS
|
|
|
|
LIBS=$saved_LIBS
|
|
|
|
|
2009-07-29 13:00:11 -04:00
|
|
|
PKG_CHECK_MODULES(TIDY, clutter-1.0)
|
2010-06-19 14:26:16 -04:00
|
|
|
PKG_CHECK_MODULES(ST, clutter-1.0 gtk+-3.0 libcroco-0.6 gnome-desktop-3.0 >= 2.90.0)
|
|
|
|
PKG_CHECK_MODULES(GDMUSER, dbus-glib-1 gtk+-3.0)
|
|
|
|
PKG_CHECK_MODULES(TRAY, gtk+-3.0)
|
2010-09-27 10:27:15 -04:00
|
|
|
PKG_CHECK_MODULES(GVC, libpulse libpulse-mainloop-glib gobject-2.0)
|
2008-11-14 12:21:56 -05:00
|
|
|
|
2010-10-31 15:28:06 -04:00
|
|
|
PKG_CHECK_MODULES(JS_TEST, clutter-x11-1.0 gjs-1.0 gobject-introspection-1.0 gtk+-3.0)
|
|
|
|
|
2009-05-07 21:29:44 -04:00
|
|
|
MUTTER_BIN_DIR=`$PKG_CONFIG --variable=exec_prefix mutter-plugins`/bin
|
2009-02-23 16:44:33 -05:00
|
|
|
# FIXME: metacity-plugins.pc should point directly to its .gir file
|
2009-05-07 21:29:44 -04:00
|
|
|
MUTTER_LIB_DIR=`$PKG_CONFIG --variable=libdir mutter-plugins`
|
|
|
|
MUTTER_PLUGIN_DIR=`$PKG_CONFIG --variable=plugindir mutter-plugins`
|
|
|
|
AC_SUBST(MUTTER_BIN_DIR)
|
|
|
|
AC_SUBST(MUTTER_LIB_DIR)
|
|
|
|
AC_SUBST(MUTTER_PLUGIN_DIR)
|
2009-02-23 16:44:33 -05:00
|
|
|
|
|
|
|
GJS_JS_DIR=`$PKG_CONFIG --variable=jsdir gjs-1.0`
|
|
|
|
GJS_JS_NATIVE_DIR=`$PKG_CONFIG --variable=jsnativedir gjs-1.0`
|
2010-02-25 19:03:06 -05:00
|
|
|
GJS_CONSOLE=`$PKG_CONFIG --variable=gjs_console gjs-1.0`
|
2009-02-23 16:44:33 -05:00
|
|
|
AC_SUBST(GJS_JS_DIR)
|
|
|
|
AC_SUBST(GJS_JS_NATIVE_DIR)
|
2010-02-25 19:03:06 -05:00
|
|
|
AC_SUBST(GJS_CONSOLE)
|
2009-02-23 16:44:33 -05:00
|
|
|
|
2009-04-21 17:21:06 -04:00
|
|
|
AC_CHECK_FUNCS(fdwalk)
|
2010-06-07 10:36:21 -04:00
|
|
|
AC_CHECK_FUNCS(mallinfo)
|
2009-04-21 17:21:06 -04:00
|
|
|
AC_CHECK_HEADERS([sys/resource.h])
|
|
|
|
|
2008-11-14 12:21:56 -05:00
|
|
|
# Sets GLIB_GENMARSHAL and GLIB_MKENUMS
|
|
|
|
AM_PATH_GLIB_2_0()
|
2008-11-14 16:25:58 -05:00
|
|
|
G_IR_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
|
|
|
|
AC_SUBST(G_IR_SCANNER)
|
|
|
|
G_IR_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
|
|
|
|
AC_SUBST(G_IR_COMPILER)
|
|
|
|
G_IR_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
|
|
|
|
AC_SUBST(G_IR_GENERATE)
|
|
|
|
GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
|
|
|
|
AC_SUBST(GIRDIR)
|
|
|
|
TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
|
|
|
|
AC_SUBST(TYPELIBDIR)
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2009-08-06 16:26:45 -04:00
|
|
|
# Stay command-line compatible with the gnome-common configure option. Here
|
|
|
|
# minimum/yes/maximum are the same, however.
|
|
|
|
AC_ARG_ENABLE(compile_warnings,
|
2010-02-06 20:19:41 -05:00
|
|
|
AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],[Turn on compiler warnings]),,
|
2009-08-06 16:26:45 -04:00
|
|
|
enable_compile_warnings=error)
|
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
changequote(,)dnl
|
2009-08-06 16:26:45 -04:00
|
|
|
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
|
2008-10-31 00:22:44 -04:00
|
|
|
fi
|
|
|
|
changequote([,])dnl
|
|
|
|
|
2009-05-07 21:29:44 -04:00
|
|
|
AC_PATH_PROG(mutter, [mutter])
|
|
|
|
AC_SUBST(mutter)
|
2008-11-14 16:25:58 -05:00
|
|
|
|
2010-07-08 23:47:27 -04:00
|
|
|
AC_MSG_CHECKING([if mutter was compiled with GTK+-3.0])
|
2010-07-09 15:47:09 -04:00
|
|
|
if $PKG_CONFIG --libs libmutter-private | grep gtk-x11-3 >/dev/null; then
|
2010-07-08 23:47:27 -04:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_MSG_ERROR([GNOME Shell requires Mutter to be compiled against GTK+-3.0])
|
|
|
|
fi
|
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
AC_CONFIG_FILES([
|
2008-10-31 00:22:44 -04:00
|
|
|
Makefile
|
2008-12-22 17:05:56 -05:00
|
|
|
data/Makefile
|
2009-03-10 12:53:03 -04:00
|
|
|
js/Makefile
|
2008-10-31 00:22:44 -04:00
|
|
|
src/Makefile
|
2009-09-18 15:51:15 -04:00
|
|
|
tests/Makefile
|
2009-07-24 18:11:14 -04:00
|
|
|
po/Makefile.in
|
2010-02-06 21:51:53 -05:00
|
|
|
man/Makefile
|
2008-10-31 00:22:44 -04:00
|
|
|
])
|
2010-02-06 20:19:41 -05:00
|
|
|
AC_OUTPUT
|