108 lines
2.6 KiB
Text
108 lines
2.6 KiB
Text
AC_PREREQ([2.67])
|
|
AC_INIT([gnome-contacts],[3.9.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-contacts])
|
|
AC_CONFIG_SRCDIR([src/main.vala])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AM_INIT_AUTOMAKE([tar-ustar dist-xz no-dist-gzip])
|
|
# Enable silent rules is available
|
|
AM_SILENT_RULES([yes])
|
|
AM_MAINTAINER_MODE([enable])
|
|
AC_CONFIG_FILES([Makefile
|
|
libgd/Makefile
|
|
vapi/Makefile
|
|
src/Makefile
|
|
man/Makefile
|
|
data/Makefile
|
|
po/Makefile.in
|
|
data/gnome-contacts.desktop.in
|
|
])
|
|
|
|
LT_INIT
|
|
AC_PROG_CC
|
|
AM_PROG_VALAC([0.17.2])
|
|
AC_PROG_INSTALL
|
|
|
|
GLIB_GSETTINGS
|
|
|
|
# i18n stuff
|
|
IT_PROG_INTLTOOL([0.40])
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
AM_GNU_GETTEXT_VERSION([0.17])
|
|
|
|
GETTEXT_PACKAGE=gnome-contacts
|
|
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext Package])
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
|
|
pkg_modules="gtk+-3.0 >= 3.9.1
|
|
glib-2.0 >= 2.31.10
|
|
gnome-desktop-3.0
|
|
folks >= 0.7.3
|
|
folks-telepathy
|
|
folks-eds
|
|
libnotify
|
|
telepathy-glib >= 0.17.5
|
|
libebook-1.2 >= 3.5.3
|
|
libedataserver-1.2 >= 3.5.3
|
|
goa-1.0
|
|
gee-0.8
|
|
"
|
|
PKG_CHECK_MODULES(CONTACTS, [$pkg_modules])
|
|
|
|
CONTACTS_PACKAGES="--pkg gtk+-3.0 --pkg gio-2.0 --pkg gio-unix-2.0 --pkg folks --pkg folks-telepathy --pkg folks-eds --pkg libnotify"
|
|
AC_SUBST(CONTACTS_PACKAGES)
|
|
|
|
# Optional dependency for the user accounts panel
|
|
AC_ARG_WITH([cheese],
|
|
AS_HELP_STRING([--with-cheese], [enable cheese webcam support]),,
|
|
with_cheese=auto)
|
|
|
|
if test x"$with_cheese" != x"no" ; then
|
|
PKG_CHECK_MODULES(CHEESE, cheese-gtk >= 3.3.91 cheese, [have_cheese=yes], [have_cheese=no])
|
|
if test x${have_cheese} = xyes; then
|
|
AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support])
|
|
fi
|
|
if test x${with_cheese} = xyes && test x${have_cheese} = xno; then
|
|
AC_MSG_ERROR([Cheese configured but not found])
|
|
fi
|
|
else
|
|
have_cheese=no
|
|
fi
|
|
AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes)
|
|
|
|
#############
|
|
# Resources #
|
|
#############
|
|
|
|
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
|
|
AC_SUBST(GLIB_COMPILE_RESOURCES)
|
|
|
|
#################
|
|
# Documentation #
|
|
#################
|
|
|
|
AC_ARG_ENABLE(man-pages,
|
|
AC_HELP_STRING([--enable-man-pages],
|
|
[build man pages]),,
|
|
enable_documentation=yes)
|
|
if test x$enable_man_pages = xyes; then
|
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
|
if test x$XSLTPROC = x; then
|
|
AC_MSG_ERROR([xsltproc is required to build man pages])
|
|
fi
|
|
fi
|
|
AM_CONDITIONAL(BUILD_MAN_PAGES, test x$enable_man_pages = xyes)
|
|
|
|
|
|
dnl libgd
|
|
LIBGD_INIT([
|
|
gtk-hacks
|
|
main-toolbar
|
|
notification
|
|
revealer
|
|
static
|
|
vapi
|
|
])
|
|
|
|
AC_OUTPUT
|