2010-02-07 01:19:41 +00:00
|
|
|
AC_PREREQ(2.63)
|
2016-12-15 15:10:22 +00:00
|
|
|
AC_INIT([gnome-shell],[3.23.3],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell])
|
2015-09-23 16:49:02 +00:00
|
|
|
AX_IS_RELEASE([git-directory])
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2010-02-07 01:19:41 +00: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 04:22:44 +00:00
|
|
|
|
2011-01-11 21:34:09 +00:00
|
|
|
AC_SUBST([PACKAGE_NAME], ["$PACKAGE_NAME"])
|
|
|
|
AC_SUBST([PACKAGE_VERSION], ["$PACKAGE_VERSION"])
|
|
|
|
|
2011-09-21 16:32:11 +00:00
|
|
|
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz tar-ustar foreign])
|
2011-09-09 15:14:58 +00:00
|
|
|
AM_MAINTAINER_MODE([enable])
|
2010-02-13 04:42:47 +00:00
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
# Checks for programs.
|
2008-10-31 04:22:44 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
# Initialize libtool
|
|
|
|
LT_PREREQ([2.2.6])
|
|
|
|
LT_INIT([disable-static])
|
|
|
|
|
2010-10-07 03:20:13 +00:00
|
|
|
# i18n
|
2010-02-13 04:42:47 +00:00
|
|
|
GETTEXT_PACKAGE=gnome-shell
|
2010-02-23 15:43:39 +00:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
|
|
|
[The prefix for our gettext translation domains.])
|
2010-02-07 01:19:41 +00:00
|
|
|
|
2016-07-21 20:42:19 +00:00
|
|
|
AM_GNU_GETTEXT_VERSION([0.19.6])
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
PKG_PROG_PKG_CONFIG([0.22])
|
2009-07-24 22:11:14 +00:00
|
|
|
|
2012-07-25 02:00:55 +00:00
|
|
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
|
|
|
|
2010-05-05 21:05:42 +00:00
|
|
|
GLIB_GSETTINGS
|
|
|
|
|
2009-08-31 15:52:18 +00:00
|
|
|
# Get a value to substitute into gnome-shell.in
|
2014-08-29 14:23:56 +00:00
|
|
|
AM_PATH_PYTHON([3])
|
2009-08-31 15:52:18 +00:00
|
|
|
AC_SUBST(PYTHON)
|
|
|
|
|
2016-11-28 04:54:38 +00:00
|
|
|
# We depend on a specific version of the libmutter API. The mutter variants of
|
|
|
|
# the Cogl and Clutter libraries also use this API version.
|
|
|
|
LIBMUTTER_API_VERSION=0
|
|
|
|
|
|
|
|
LIBMUTTER=libmutter-$LIBMUTTER_API_VERSION
|
|
|
|
LIBMUTTER_COGL=mutter-cogl-$LIBMUTTER_API_VERSION
|
|
|
|
LIBMUTTER_COGL_PANGO=mutter-cogl-pango-$LIBMUTTER_API_VERSION
|
|
|
|
LIBMUTTER_CLUTTER=mutter-clutter-$LIBMUTTER_API_VERSION
|
|
|
|
|
2009-03-13 21:14:31 +00: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.
|
2012-07-04 15:49:55 +00:00
|
|
|
GSTREAMER_MIN_VERSION=0.11.92
|
2009-03-13 21:14:31 +00:00
|
|
|
|
|
|
|
recorder_modules=
|
|
|
|
build_recorder=false
|
|
|
|
AC_MSG_CHECKING([for GStreamer (needed for recording functionality)])
|
2012-07-04 15:49:55 +00:00
|
|
|
if $PKG_CONFIG --exists gstreamer-1.0 '>=' $GSTREAMER_MIN_VERSION ; then
|
2009-03-13 21:14:31 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
build_recorder=true
|
2012-10-25 21:26:17 +00:00
|
|
|
recorder_modules="gstreamer-1.0 gstreamer-base-1.0 x11 gtk+-3.0"
|
2016-11-28 04:54:38 +00:00
|
|
|
PKG_CHECK_MODULES(TEST_SHELL_RECORDER, $recorder_modules $LIBMUTTER_CLUTTER)
|
2009-03-13 21:14:31 +00:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_RECORDER, $build_recorder)
|
|
|
|
|
2013-11-07 17:34:57 +00:00
|
|
|
AC_ARG_ENABLE([systemd],
|
|
|
|
AS_HELP_STRING([--enable-systemd], [Use systemd]),
|
|
|
|
[enable_systemd=$enableval],
|
|
|
|
[enable_systemd=auto])
|
|
|
|
AS_IF([test x$enable_systemd != xno], [
|
2015-06-15 19:48:00 +00:00
|
|
|
AC_MSG_CHECKING([for libsystemd])
|
|
|
|
PKG_CHECK_EXISTS([libsystemd],
|
2013-11-07 17:34:57 +00:00
|
|
|
[have_systemd=yes
|
|
|
|
AC_DEFINE([HAVE_SYSTEMD], [1], [Define if we have systemd])],
|
|
|
|
[have_systemd=no])
|
|
|
|
AC_MSG_RESULT($have_systemd)
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_MSG_RESULT($enable_systemd)
|
|
|
|
|
2016-08-03 19:46:54 +00:00
|
|
|
GOBJECT_INTROSPECTION_MIN_VERSION=1.49.1
|
2016-10-03 23:09:39 +00:00
|
|
|
GJS_MIN_VERSION=1.47.0
|
2016-12-15 15:10:22 +00:00
|
|
|
MUTTER_MIN_VERSION=3.23.3
|
2014-10-30 14:27:50 +00:00
|
|
|
GTK_MIN_VERSION=3.15.0
|
2015-07-03 20:40:32 +00:00
|
|
|
GIO_MIN_VERSION=2.45.3
|
2012-04-26 13:08:27 +00:00
|
|
|
LIBECAL_MIN_VERSION=3.5.3
|
2015-08-11 14:58:22 +00:00
|
|
|
LIBEDATASERVER_MIN_VERSION=3.17.2
|
2012-01-11 12:39:38 +00:00
|
|
|
TELEPATHY_GLIB_MIN_VERSION=0.17.5
|
2011-02-21 17:17:34 +00:00
|
|
|
POLKIT_MIN_VERSION=0.100
|
2011-05-24 20:59:43 +00:00
|
|
|
STARTUP_NOTIFICATION_MIN_VERSION=0.11
|
2013-05-29 22:56:01 +00:00
|
|
|
GCR_MIN_VERSION=3.7.5
|
2013-02-19 06:54:52 +00:00
|
|
|
GNOME_DESKTOP_REQUIRED_VERSION=3.7.90
|
2013-04-27 20:45:03 +00:00
|
|
|
NETWORKMANAGER_MIN_VERSION=0.9.8
|
2012-12-10 11:19:03 +00:00
|
|
|
PULSE_MIN_VERS=2.0
|
2010-02-11 20:24:13 +00:00
|
|
|
|
2009-08-11 15:32:58 +00:00
|
|
|
# Collect more than 20 libraries for a prize!
|
2013-08-16 13:47:17 +00:00
|
|
|
SHARED_PCS="gio-unix-2.0 >= $GIO_MIN_VERSION
|
|
|
|
libxml-2.0
|
|
|
|
gtk+-3.0 >= $GTK_MIN_VERSION
|
|
|
|
atk-bridge-2.0
|
2016-10-18 00:38:54 +00:00
|
|
|
gjs-1.0 >= $GJS_MIN_VERSION
|
2013-08-16 13:47:17 +00:00
|
|
|
$recorder_modules
|
|
|
|
gdk-x11-3.0 libsoup-2.4
|
2016-11-28 04:54:38 +00:00
|
|
|
$LIBMUTTER_CLUTTER >= $MUTTER_MIN_VERSION
|
|
|
|
$LIBMUTTER_COGL_PANGO
|
2013-08-16 13:47:17 +00:00
|
|
|
libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_MIN_VERSION
|
|
|
|
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
|
|
|
|
libcanberra libcanberra-gtk3
|
|
|
|
telepathy-glib >= $TELEPATHY_GLIB_MIN_VERSION
|
|
|
|
polkit-agent-1 >= $POLKIT_MIN_VERSION
|
2014-02-11 22:20:15 +00:00
|
|
|
gcr-base-3 >= $GCR_MIN_VERSION"
|
2013-11-07 17:34:57 +00:00
|
|
|
if test x$have_systemd = xyes; then
|
2015-06-15 19:48:00 +00:00
|
|
|
SHARED_PCS="${SHARED_PCS} libsystemd"
|
2013-11-07 17:34:57 +00:00
|
|
|
fi
|
2013-08-16 13:47:17 +00:00
|
|
|
|
|
|
|
PKG_CHECK_MODULES(GNOME_SHELL, $SHARED_PCS)
|
2016-11-28 04:54:38 +00:00
|
|
|
PKG_CHECK_MODULES(MUTTER, $LIBMUTTER >= $MUTTER_MIN_VERSION)
|
2010-02-24 16:29:44 +00:00
|
|
|
|
2016-10-18 00:38:54 +00:00
|
|
|
PKG_CHECK_MODULES(GNOME_SHELL_JS, gio-2.0 gjs-1.0 >= $GJS_MIN_VERSION)
|
2016-11-28 04:54:38 +00:00
|
|
|
PKG_CHECK_MODULES(ST, $LIBMUTTER_CLUTTER gtk+-3.0 libcroco-0.6 >= 0.6.8 x11)
|
2011-03-08 23:17:53 +00:00
|
|
|
PKG_CHECK_MODULES(SHELL_PERF_HELPER, gtk+-3.0 gio-2.0)
|
2011-07-12 14:34:41 +00:00
|
|
|
PKG_CHECK_MODULES(SHELL_HOTPLUG_SNIFFER, gio-2.0 gdk-pixbuf-2.0)
|
2016-11-28 04:54:38 +00:00
|
|
|
PKG_CHECK_MODULES(TRAY, $LIBMUTTER_CLUTTER gtk+-3.0)
|
2012-12-10 11:19:03 +00:00
|
|
|
PKG_CHECK_MODULES(GVC, libpulse >= $PULSE_MIN_VERS libpulse-mainloop-glib gobject-2.0)
|
2016-07-19 15:06:21 +00:00
|
|
|
PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 3.21.3)
|
2010-10-31 19:28:06 +00:00
|
|
|
|
2016-11-28 04:54:38 +00:00
|
|
|
AC_SUBST(LIBMUTTER_API_VERSION)
|
|
|
|
|
2013-10-31 16:02:01 +00:00
|
|
|
AC_ARG_ENABLE(browser-plugin,
|
|
|
|
[AS_HELP_STRING([--enable-browser-plugin],
|
|
|
|
[Enable browser plugin [default=yes]])],,
|
|
|
|
enable_browser_plugin=yes)
|
|
|
|
AS_IF([test x$enable_browser_plugin = xyes], [
|
|
|
|
PKG_CHECK_MODULES(BROWSER_PLUGIN, gio-2.0 >= $GIO_MIN_VERSION json-glib-1.0 >= 0.13.2)
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL(BUILD_BROWSER_PLUGIN, test x$enable_browser_plugin = xyes)
|
|
|
|
|
2013-11-26 14:08:18 +00:00
|
|
|
PKG_CHECK_MODULES(BLUETOOTH, gnome-bluetooth-1.0 >= 3.9.0,
|
|
|
|
[AC_DEFINE([HAVE_BLUETOOTH],[1],[Define if you have libgnome-bluetooth-applet])
|
|
|
|
AC_SUBST([HAVE_BLUETOOTH],[1])],
|
2010-07-24 11:57:53 +00:00
|
|
|
[AC_DEFINE([HAVE_BLUETOOTH],[0])
|
2013-11-26 14:08:18 +00:00
|
|
|
AC_SUBST([HAVE_BLUETOOTH],[0])])
|
2010-07-24 11:57:53 +00:00
|
|
|
|
2012-10-30 17:42:43 +00:00
|
|
|
PKG_CHECK_MODULES(CALENDAR_SERVER, libecal-1.2 >= $LIBECAL_MIN_VERSION libedataserver-1.2 >= $LIBEDATASERVER_MIN_VERSION gio-2.0)
|
2011-02-25 22:42:25 +00:00
|
|
|
AC_SUBST(CALENDAR_SERVER_CFLAGS)
|
|
|
|
AC_SUBST(CALENDAR_SERVER_LIBS)
|
2011-01-28 21:35:46 +00:00
|
|
|
|
2013-01-19 04:22:45 +00:00
|
|
|
GNOME_KEYBINDINGS_KEYSDIR=`$PKG_CONFIG --variable keysdir gnome-keybindings`
|
|
|
|
AC_SUBST([GNOME_KEYBINDINGS_KEYSDIR])
|
|
|
|
|
|
|
|
GOBJECT_INTROSPECTION_CHECK([$GOBJECT_INTROSPECTION_MIN_VERSION])
|
|
|
|
|
2016-11-28 04:54:38 +00:00
|
|
|
MUTTER_GIR_DIR=`$PKG_CONFIG --variable=girdir $LIBMUTTER`
|
2011-02-25 16:20:27 +00:00
|
|
|
AC_SUBST(MUTTER_GIR_DIR)
|
2013-08-28 03:41:18 +00:00
|
|
|
|
2016-11-28 04:54:38 +00:00
|
|
|
MUTTER_TYPELIB_DIR=`$PKG_CONFIG --variable=typelibdir $LIBMUTTER`
|
2011-02-25 16:20:27 +00:00
|
|
|
AC_SUBST(MUTTER_TYPELIB_DIR)
|
2013-08-28 03:41:18 +00:00
|
|
|
|
2010-02-26 00:03:06 +00:00
|
|
|
GJS_CONSOLE=`$PKG_CONFIG --variable=gjs_console gjs-1.0`
|
|
|
|
AC_SUBST(GJS_CONSOLE)
|
2009-02-23 21:44:33 +00:00
|
|
|
|
2013-07-02 06:54:53 +00:00
|
|
|
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
|
|
|
|
AC_SUBST(GLIB_COMPILE_RESOURCES)
|
|
|
|
|
2009-04-21 21:21:06 +00:00
|
|
|
AC_CHECK_FUNCS(fdwalk)
|
2010-06-07 14:36:21 +00:00
|
|
|
AC_CHECK_FUNCS(mallinfo)
|
2009-04-21 21:21:06 +00:00
|
|
|
AC_CHECK_HEADERS([sys/resource.h])
|
|
|
|
|
2011-06-24 00:40:36 +00:00
|
|
|
# _NL_TIME_FIRST_WEEKDAY is an enum and not a define
|
|
|
|
AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY])
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]],
|
|
|
|
[[nl_langinfo(_NL_TIME_FIRST_WEEKDAY);]])],
|
|
|
|
[langinfo_ok=yes], [langinfo_ok=no])
|
|
|
|
AC_MSG_RESULT($langinfo_ok)
|
|
|
|
if test "$langinfo_ok" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE__NL_TIME_FIRST_WEEKDAY], [1],
|
|
|
|
[Define if _NL_TIME_FIRST_WEEKDAY is available])
|
|
|
|
fi
|
|
|
|
|
2014-02-11 22:20:15 +00:00
|
|
|
AC_ARG_ENABLE(networkmanager,
|
|
|
|
AS_HELP_STRING([--disable-networkmanager],
|
|
|
|
[disable NetworkManager support @<:@default=auto@:>@]),,
|
|
|
|
[enable_networkmanager=auto])
|
|
|
|
|
|
|
|
if test "x$enable_networkmanager" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES(NETWORKMANAGER,
|
|
|
|
[libnm-glib
|
|
|
|
libnm-util >= $NETWORKMANAGER_MIN_VERSION
|
|
|
|
libnm-gtk >= $NETWORKMANAGER_MIN_VERSION
|
|
|
|
libsecret-unstable],
|
|
|
|
[have_networkmanager=yes],
|
|
|
|
[have_networkmanager=no])
|
|
|
|
|
|
|
|
GNOME_SHELL_CFLAGS="$GNOME_SHELL_CFLAGS $NETWORKMANAGER_CFLAGS"
|
|
|
|
GNOME_SHELL_LIBS="$GNOME_SHELL_LIBS $NETWORKMANAGER_LIBS"
|
|
|
|
else
|
|
|
|
have_networkmanager="no (disabled)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_networkmanager" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_NETWORKMANAGER, [1], [Define if we have NetworkManager])
|
|
|
|
AC_SUBST([HAVE_NETWORKMANAGER], [1])
|
|
|
|
else
|
|
|
|
if test "x$enable_networkmanager" = "xyes"; then
|
|
|
|
AC_MSG_ERROR([Couldn't find NetworkManager.])
|
|
|
|
fi
|
|
|
|
AC_SUBST([HAVE_NETWORKMANAGER], [0])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_NETWORKMANAGER, test "$have_networkmanager" = "yes")
|
|
|
|
|
2008-11-14 17:21:56 +00:00
|
|
|
# Sets GLIB_GENMARSHAL and GLIB_MKENUMS
|
|
|
|
AM_PATH_GLIB_2_0()
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2011-09-07 18:23:28 +00:00
|
|
|
GTK_DOC_CHECK([1.15], [--flavour no-tmpl])
|
|
|
|
|
2012-11-06 04:39:32 +00:00
|
|
|
AC_ARG_ENABLE(man,
|
|
|
|
[AS_HELP_STRING([--enable-man],
|
|
|
|
[generate man pages [default=yes]])],,
|
|
|
|
enable_man=yes)
|
|
|
|
if test "$enable_man" != no; then
|
|
|
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
|
|
|
if test -z "$XSLTPROC"; then
|
|
|
|
AC_MSG_ERROR([xsltproc is required for --enable-man])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
|
|
|
|
|
2015-09-23 16:49:02 +00:00
|
|
|
AX_COMPILER_FLAGS()
|
2014-05-19 22:15:39 +00:00
|
|
|
case "$WARN_CFLAGS" in
|
|
|
|
*-Werror*)
|
|
|
|
WARN_CFLAGS="$WARN_CFLAGS -Wno-error=deprecated-declarations"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
|
|
|
|
AC_SUBST(AM_CFLAGS)
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2014-10-27 13:45:10 +00:00
|
|
|
if test -z "${BROWSER_PLUGIN_DIR}"; then
|
|
|
|
BROWSER_PLUGIN_DIR="\${libdir}/mozilla/plugins"
|
|
|
|
fi
|
2011-09-15 05:42:43 +00:00
|
|
|
AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to])
|
|
|
|
|
2014-09-18 11:15:06 +00:00
|
|
|
AC_ARG_VAR([GDBUS_CODEGEN],[the gdbus-codegen programme])
|
|
|
|
AC_PATH_PROG([GDBUS_CODEGEN],[gdbus-codegen],[])
|
|
|
|
if test -z "$GDBUS_CODEGEN"; then
|
|
|
|
AC_MSG_ERROR([gdbus-codegen not found])
|
|
|
|
fi
|
|
|
|
|
2015-02-21 14:05:16 +00:00
|
|
|
AC_PATH_PROG([SASS],[sass],[])
|
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
AC_CONFIG_FILES([
|
2008-10-31 04:22:44 +00:00
|
|
|
Makefile
|
2008-12-22 22:05:56 +00:00
|
|
|
data/Makefile
|
2011-09-07 18:23:28 +00:00
|
|
|
docs/Makefile
|
|
|
|
docs/reference/Makefile
|
|
|
|
docs/reference/shell/Makefile
|
|
|
|
docs/reference/shell/shell-docs.sgml
|
|
|
|
docs/reference/st/Makefile
|
|
|
|
docs/reference/st/st-docs.sgml
|
2009-03-10 16:53:03 +00:00
|
|
|
js/Makefile
|
2008-10-31 04:22:44 +00:00
|
|
|
src/Makefile
|
2012-10-19 17:02:41 +00:00
|
|
|
src/gvc/Makefile
|
2011-09-12 20:06:10 +00:00
|
|
|
browser-plugin/Makefile
|
2009-09-18 19:51:15 +00:00
|
|
|
tests/Makefile
|
2009-07-24 22:11:14 +00:00
|
|
|
po/Makefile.in
|
2010-02-07 02:51:53 +00:00
|
|
|
man/Makefile
|
2008-10-31 04:22:44 +00:00
|
|
|
])
|
2010-02-07 01:19:41 +00:00
|
|
|
AC_OUTPUT
|
2014-02-11 22:20:15 +00:00
|
|
|
|
|
|
|
echo "
|
|
|
|
Build configuration:
|
|
|
|
|
|
|
|
Prefix: ${prefix}
|
|
|
|
Source code location: ${srcdir}
|
|
|
|
Compiler: ${CC}
|
2015-09-23 16:49:02 +00:00
|
|
|
Compiler Warnings: $ax_enable_compile_warnings
|
2014-02-11 22:20:15 +00:00
|
|
|
|
|
|
|
Support for NetworkManager: $have_networkmanager
|
|
|
|
Support for GStreamer recording: $build_recorder
|
|
|
|
"
|