2008-10-31 00:22:44 -04:00
|
|
|
AC_INIT(gnome-shell, 0.0.1)
|
|
|
|
|
|
|
|
AC_CONFIG_AUX_DIR(config)
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS(config.h)
|
|
|
|
|
2008-11-12 16:35:17 -05:00
|
|
|
AC_DISABLE_STATIC
|
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
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
GETTEXT_PACKAGE=gnome-shell
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
|
|
|
[The prefix for our gettext translation domains.])
|
|
|
|
|
2009-03-13 17:14:31 -04:00
|
|
|
PKG_PROG_PKG_CONFIG(0.16)
|
|
|
|
|
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
|
|
|
|
|
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"
|
|
|
|
PKG_CHECK_MODULES(TEST_SHELL_RECORDER, $recorder_modules clutter-0.9)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_RECORDER, $build_recorder)
|
|
|
|
|
2009-07-07 16:08:41 -04:00
|
|
|
PKG_CHECK_MODULES(MUTTER_PLUGIN, gio-unix-2.0 gtk+-2.0 dbus-glib-1 mutter-plugins gjs-gi-1.0 xscrnsaver libgnome-menu $recorder_modules gconf-2.0 gdk-x11-2.0 clutter-x11-0.9 clutter-glx-0.9)
|
2009-02-23 14:42:00 -05:00
|
|
|
PKG_CHECK_MODULES(TIDY, clutter-0.9)
|
|
|
|
PKG_CHECK_MODULES(BIG, clutter-0.9 gtk+-2.0 librsvg-2.0)
|
2009-02-04 13:45:38 -05:00
|
|
|
PKG_CHECK_MODULES(GDMUSER, dbus-glib-1 gtk+-2.0)
|
2008-11-14 12:21:56 -05:00
|
|
|
PKG_CHECK_MODULES(TRAY, gtk+-2.0)
|
2009-01-19 18:06:59 -05:00
|
|
|
PKG_CHECK_MODULES(TASKPANEL, libwnck-1.0 dbus-glib-1)
|
2009-01-08 20:09:35 -05:00
|
|
|
# We require libgnomeui for generating thumbnails for recent files with GnomeThumbnailFactory.
|
|
|
|
# We'll switch to using GnomeDesktopThumbnailFactory once the branch of gnome-desktop that contains
|
|
|
|
# it becomes stable.
|
|
|
|
PKG_CHECK_MODULES(LIBGNOMEUI, libgnomeui-2.0)
|
2008-11-14 12:21:56 -05:00
|
|
|
|
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`
|
|
|
|
AC_SUBST(GJS_JS_DIR)
|
|
|
|
AC_SUBST(GJS_JS_NATIVE_DIR)
|
|
|
|
|
2009-04-21 17:21:06 -04:00
|
|
|
AC_CHECK_FUNCS(fdwalk)
|
|
|
|
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
|
|
|
|
|
|
|
changequote(,)dnl
|
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case " $OBJCFLAGS " in
|
|
|
|
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
|
|
*) OBJCFLAGS="$OBJCFLAGS -Wall" ;;
|
|
|
|
esac
|
|
|
|
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
|
|
|
|
2008-10-31 00:22:44 -04:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2008-12-22 17:05:56 -05:00
|
|
|
data/Makefile
|
2009-03-10 12:53:03 -04:00
|
|
|
js/Makefile
|
2009-06-16 12:20:12 -04:00
|
|
|
js/misc/Makefile
|
2009-03-10 12:53:03 -04:00
|
|
|
js/ui/Makefile
|
2008-10-31 00:22:44 -04:00
|
|
|
src/Makefile
|
|
|
|
])
|