|
Packit |
79f644 |
m4_define([goa_major_version], [3])
|
|
Packit |
79f644 |
m4_define([goa_minor_version], [28])
|
|
Packit |
79f644 |
m4_define([goa_micro_version], [2])
|
|
Packit |
79f644 |
m4_define([goa_nano_version], [0])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
m4_define([goa_base_version],
|
|
Packit |
79f644 |
[goa_major_version.goa_minor_version.goa_micro_version])
|
|
Packit |
79f644 |
m4_define([goa_version],
|
|
Packit |
79f644 |
[m4_if(goa_nano_version, 0, [goa_base_version],
|
|
Packit |
79f644 |
[goa_base_version].[goa_nano_version])])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_INIT([GNOME Online Accounts],
|
|
Packit |
79f644 |
[goa_version],
|
|
Packit |
79f644 |
[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-online-accounts],
|
|
Packit |
79f644 |
[gnome-online-accounts],
|
|
Packit |
79f644 |
[https://wiki.gnome.org/Projects/GnomeOnlineAccounts])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AM_INIT_AUTOMAKE([1.9 foreign dist-xz no-dist-gzip tar-ustar])
|
|
Packit |
79f644 |
AC_CONFIG_MACRO_DIR([m4])
|
|
Packit |
79f644 |
AC_CONFIG_SRCDIR([src])
|
|
Packit |
79f644 |
AC_CONFIG_HEADERS([config.h])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AM_MAINTAINER_MODE([enable])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AX_IS_RELEASE([git-directory])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AX_CHECK_ENABLE_DEBUG([yes],,, [$ax_is_release])
|
|
Packit |
79f644 |
AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS], [$ax_is_release])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_PROG_CC
|
|
Packit |
79f644 |
AC_ISC_POSIX
|
|
Packit |
79f644 |
AC_HEADER_STDC
|
|
Packit |
79f644 |
AC_PROG_LIBTOOL
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_PROG_PKG_CONFIG(0.16)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GOA_MAJOR_VERSION=goa_major_version
|
|
Packit |
79f644 |
GOA_MINOR_VERSION=goa_minor_version
|
|
Packit |
79f644 |
GOA_MICRO_VERSION=goa_micro_version
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_SUBST(GOA_MAJOR_VERSION)
|
|
Packit |
79f644 |
AC_SUBST(GOA_MINOR_VERSION)
|
|
Packit |
79f644 |
AC_SUBST(GOA_MICRO_VERSION)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Before making a release, the LT_VERSION string should be modified.
|
|
Packit |
79f644 |
# The string is of the form C:R:A.
|
|
Packit |
79f644 |
# - If interfaces have been changed or added, but binary compatibility has
|
|
Packit |
79f644 |
# been preserved, change to C+1:0:A+1
|
|
Packit |
79f644 |
# - If binary compatibility has been broken (eg removed or changed interfaces)
|
|
Packit |
79f644 |
# change to C+1:0:0
|
|
Packit |
79f644 |
# - If the interface is the same as the previous version, change to C:R+1:A
|
|
Packit |
79f644 |
GOA_LT_VERSION=0:0:0
|
|
Packit |
79f644 |
GOA_BACKEND_LT_VERSION=1:0:0
|
|
Packit |
79f644 |
AC_SUBST(GOA_LT_VERSION)
|
|
Packit |
79f644 |
AC_SUBST(GOA_BACKEND_LT_VERSION)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_DEFINE(GOA_MAJOR_VERSION,
|
|
Packit |
79f644 |
[goa_major_version],
|
|
Packit |
79f644 |
[Define to the GOA major version])
|
|
Packit |
79f644 |
AC_DEFINE(GOA_MINOR_VERSION,
|
|
Packit |
79f644 |
[goa_minor_version],
|
|
Packit |
79f644 |
[Define to the GOA minor version])
|
|
Packit |
79f644 |
AC_DEFINE(GOA_MICRO_VERSION,
|
|
Packit |
79f644 |
[goa_micro_version],
|
|
Packit |
79f644 |
[Define to the GOA micro version])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Initialization
|
|
Packit |
79f644 |
#
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AX_REQUIRE_DEFINED([GLIB_GSETTINGS])
|
|
Packit |
79f644 |
GLIB_GSETTINGS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_ARG_ENABLE([documentation],
|
|
Packit |
79f644 |
AS_HELP_STRING([--enable-documentation], [enable man pages and HTML]),
|
|
Packit |
79f644 |
[], [enable_documentation=yes])
|
|
Packit |
79f644 |
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
|
|
Packit |
79f644 |
if test x$enable_documentation = xyes; then
|
|
Packit |
79f644 |
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
|
Packit |
79f644 |
if test -z "$XSLTPROC"; then
|
|
Packit |
79f644 |
AC_MSG_ERROR([xsltproc is needed])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AX_REQUIRE_DEFINED([GTK_DOC_CHECK])
|
|
Packit |
79f644 |
GTK_DOC_CHECK([1.3])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Libraries
|
|
Packit |
79f644 |
#
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(GLIB, [glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52])
|
|
Packit |
79f644 |
AC_SUBST(GLIB_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(GLIB_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AX_REQUIRE_DEFINED([GOBJECT_INTROSPECTION_CHECK])
|
|
Packit |
79f644 |
GOBJECT_INTROSPECTION_CHECK([0.6.2])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
VAPIGEN_CHECK()
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Telepathy
|
|
Packit |
79f644 |
AC_DEFINE(GOA_TELEPATHY_NAME, ["telepathy"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([telepathy],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-telepathy],
|
|
Packit |
79f644 |
[Enable Telepathy IM provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_telepathy=no])
|
|
Packit |
79f644 |
if test "$enable_telepathy" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_TELEPATHY_ENABLED, 1, [Enable Telepathy data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AM_CONDITIONAL(BUILD_TELEPATHY, [test x$enable_telepathy != xno])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_ARG_ENABLE([backend],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-backend],
|
|
Packit |
79f644 |
[Enable goabackend library])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_backend=yes])
|
|
Packit |
79f644 |
AM_CONDITIONAL(BUILD_BACKEND, [test x$enable_backend != xno])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
if test "$enable_backend" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_BACKEND_ENABLED, 1, [Enable goabackend library])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= 3.19.12])
|
|
Packit |
79f644 |
AC_SUBST(GTK_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(GTK_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(WEBKIT_GTK, [webkit2gtk-4.0 >= 2.12.0])
|
|
Packit |
79f644 |
AC_SUBST(WEBKIT_GTK_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(WEBKIT_GTK_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= 2.42])
|
|
Packit |
79f644 |
AC_SUBST(LIBSOUP_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(LIBSOUP_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(JSON_GLIB, [json-glib-1.0])
|
|
Packit |
79f644 |
AC_SUBST(JSON_GLIB_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(JSON_GLIB_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(REST, [rest-0.7])
|
|
Packit |
79f644 |
AC_SUBST(REST_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(REST_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(SECRET, [libsecret-1])
|
|
Packit |
79f644 |
AC_SUBST(SECRET_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(SECRET_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(LIBXML, [libxml-2.0])
|
|
Packit |
79f644 |
AC_SUBST(LIBXML_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(LIBXML_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
if test "$enable_telepathy" != "no"; then
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(TP, [telepathy-glib])
|
|
Packit |
79f644 |
AC_SUBST(TP_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(TP_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# telepathy-account-widgets
|
|
Packit |
79f644 |
prev_top_build_prefix=$ac_top_build_prefix
|
|
Packit |
79f644 |
prev_ac_configure_args=$ac_configure_args
|
|
Packit |
79f644 |
ac_configure_args="$ac_configure_args --with-cheese=no --disable-gudev --enable-ubuntu-online-accounts=no"
|
|
Packit |
79f644 |
# install the data together with the rest of GOA's data
|
|
Packit |
79f644 |
ac_configure_args="$ac_configure_args --with-pkgdatadir=${datadir}/gnome-online-accounts"
|
|
Packit |
79f644 |
# GOA ships its icons directly in ${datadir}/icons (usually /usr/share/icons/) and not
|
|
Packit |
79f644 |
# in its own data directory
|
|
Packit |
79f644 |
ac_configure_args="$ac_configure_args --with-icondir=${datadir}/icons"
|
|
Packit |
79f644 |
# Change the name of tpaw's .mo files to avoid conflicts with other packages using tp-aw
|
|
Packit |
79f644 |
ac_configure_args="$ac_configure_args --with-gettext-package=gnome-online-accounts-tpaw"
|
|
Packit |
79f644 |
# Disable the installation of the GSettings schema to avoid multiple components shipping
|
|
Packit |
79f644 |
# the same file. See https://bugzilla.gnome.org/show_bug.cgi?id=706803
|
|
Packit |
79f644 |
ac_configure_args="$ac_configure_args --disable-schemas-compile --disable-settings"
|
|
Packit |
79f644 |
AX_CONFIG_DIR([telepathy-account-widgets])
|
|
Packit |
79f644 |
ac_top_build_prefix=$prev_top_build_prefix
|
|
Packit |
79f644 |
ac_configure_args=$prev_ac_configure_args
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$ac_top_build_prefix"telepathy-account-widgets/
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(TPAW, telepathy-account-widgets)
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_ARG_ENABLE([inspector],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-inspector], [Enable a WebKitWebInspector for the embedded web view])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_inspector=no])
|
|
Packit |
79f644 |
if test "$enable_inspector" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_INSPECTOR_ENABLED, 1, [Enable a WebKitWebInspector for the embedded web view])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_ARG_WITH(template-file,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-template-file], [Path to the template file])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_TEMPLATE_FILE, ["$with_template_file"], [Path to the template file])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# service providers
|
|
Packit |
79f644 |
#
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Microsoft Exchange
|
|
Packit |
79f644 |
AC_DEFINE(GOA_EXCHANGE_NAME, ["exchange"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([exchange],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-exchange], [Enable Microsoft Exchange provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_exchange=yes])
|
|
Packit |
79f644 |
if test "$enable_exchange" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_EXCHANGE_ENABLED, 1, [Enable Microsoft Exchange data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Flickr
|
|
Packit |
79f644 |
AC_DEFINE(GOA_FLICKR_NAME, ["flickr"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([flickr],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-flickr], [Enable Flickr provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_flickr=yes])
|
|
Packit |
79f644 |
AC_ARG_WITH(flickr-consumer-key,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-flickr-consumer-key], [Flickr OAuth 1.0 consumer key])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
AC_ARG_WITH(flickr-consumer-secret,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-flickr-consumer-secret], [Flickr OAuth 1.0 consumer secret])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
if test "$with_flickr_consumer_key" = ""; then
|
|
Packit |
79f644 |
with_flickr_consumer_key=ed00ad7e0869897506e23c0d18e34d01
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
if test "$with_flickr_consumer_secret" = ""; then
|
|
Packit |
79f644 |
with_flickr_consumer_secret=ebd556dd187188b1
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_FLICKR_CONSUMER_KEY, ["$with_flickr_consumer_key"], [Flickr OAuth 1.0 consumer key])
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_FLICKR_CONSUMER_SECRET, ["$with_flickr_consumer_secret"], [Flickr OAuth 1.0 consumer secret])
|
|
Packit |
79f644 |
if test "$enable_flickr" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_FLICKR_ENABLED, 1, [Enable Flickr data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Foursquare
|
|
Packit |
79f644 |
AC_DEFINE(GOA_FOURSQUARE_NAME, ["foursquare"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([foursquare],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-foursquare], [Enable Foursquare provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_foursquare=yes])
|
|
Packit |
79f644 |
AC_ARG_WITH(foursquare-client-id,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-foursquare-client-id], [Foursquare OAuth 2.0 client id])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
if test "$with_foursquare_client_id" = ""; then
|
|
Packit |
79f644 |
with_foursquare_client_id="MBNU2NES5HASNDQJ25YPFGG2UGRZHPI3IYTNJGE0KIWT2HCF"
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_FOURSQUARE_CLIENT_ID, ["$with_foursquare_client_id"], [Foursquare OAuth 2.0 client id])
|
|
Packit |
79f644 |
if test "$enable_foursquare" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_FOURSQUARE_ENABLED, 1, [Enable Foursquare data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Google
|
|
Packit |
79f644 |
AC_DEFINE(GOA_GOOGLE_NAME, ["google"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([google],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-google], [Enable Google provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_google=yes])
|
|
Packit |
79f644 |
AC_ARG_WITH(google-client-id,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-google-client-id], [Google OAuth 2.0 client id])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
AC_ARG_WITH(google-client-secret,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-google-client-secret], [Google OAuth 2.0 client secret])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
if test "$with_google_client_id" = ""; then
|
|
Packit |
79f644 |
with_google_client_id=44438659992-7kgjeitenc16ssihbtdjbgguch7ju55s.apps.googleusercontent.com
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
if test "$with_google_client_secret" = ""; then
|
|
Packit |
79f644 |
with_google_client_secret=-gMLuQyDiI0XrQS_vx_mhuYF
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_GOOGLE_CLIENT_ID, ["$with_google_client_id"], [Google OAuth 2.0 client id])
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_GOOGLE_CLIENT_SECRET, ["$with_google_client_secret"], [Google OAuth 2.0 client secret])
|
|
Packit |
79f644 |
if test "$enable_google" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_GOOGLE_ENABLED, 1, [Enable Google data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# IMAP/SMTP
|
|
Packit |
79f644 |
AC_DEFINE(GOA_IMAP_SMTP_NAME, ["imap_smtp"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([imap-smtp],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-imap-smtp], [Enable IMAP/SMTP provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_imap_smtp=yes])
|
|
Packit |
79f644 |
if test "$enable_imap_smtp" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_IMAP_SMTP_ENABLED, 1, [Enable IMAP/SMTP data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Media Server
|
|
Packit |
79f644 |
AC_DEFINE(GOA_MEDIA_SERVER_NAME, ["media-server"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([media-server],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-media-server], [Enable Media Server provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_media_server=no])
|
|
Packit |
79f644 |
if test "$enable_media_server" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_MEDIA_SERVER_ENABLED, 1, [Enable Media Server provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# ownCloud
|
|
Packit |
79f644 |
AC_DEFINE(GOA_OWNCLOUD_NAME, ["owncloud"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([owncloud],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-owncloud], [Enable ownCloud provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_owncloud=yes])
|
|
Packit |
79f644 |
if test "$enable_owncloud" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_OWNCLOUD_ENABLED, 1, [Enable ownCloud data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Facebook
|
|
Packit |
79f644 |
AC_DEFINE(GOA_FACEBOOK_NAME, ["facebook"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([facebook],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-facebook], [Enable Facebook provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_facebook=yes])
|
|
Packit |
79f644 |
AC_ARG_WITH(facebook-client-id,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-facebook-client-id], [Facebook OAuth 2.0 client id])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
if test "$with_facebook_client_id" = ""; then
|
|
Packit |
79f644 |
with_facebook_client_id=297654143624603
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_FACEBOOK_CLIENT_ID, ["$with_facebook_client_id"], [Facebook OAuth 2.0 client id])
|
|
Packit |
79f644 |
if test "$enable_facebook" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_FACEBOOK_ENABLED, 1, [Enable Facebook data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Todoist
|
|
Packit |
79f644 |
AC_DEFINE(GOA_TODOIST_NAME, ["todoist"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([todoist],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-todoist], [Enable Todoist provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_todoist=no])
|
|
Packit |
79f644 |
AC_ARG_WITH(todoist-client-id,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-todoist-client-id], [Todoist OAuth 2.0 client id])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
AC_ARG_WITH(todoist-client-secret,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-todoist-client-secret], [Todoist client secret])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
if test "$with_todoist_client_id" = ""; then
|
|
Packit |
79f644 |
with_todoist_client_id="2e41575c1dd74f98ad7cfb178e1ba3dd"
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
if test "$with_todoist_client_secret" = ""; then
|
|
Packit |
79f644 |
with_todoist_client_secret="3e59831ffdd64633918d19aa0a1efd2b"
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_TODOIST_CLIENT_ID, ["$with_todoist_client_id"], [Todoist OAuth 2.0 client id])
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_TODOIST_CLIENT_SECRET, ["$with_todoist_client_secret"], [Todoist client secret])
|
|
Packit |
79f644 |
if test "$enable_todoist" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_TODOIST_ENABLED, 1, [Enable Todoist data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Windows Live
|
|
Packit |
79f644 |
AC_DEFINE(GOA_WINDOWS_LIVE_NAME, ["windows_live"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([windows-live],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-windows-live], [Enable Windows Live provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_windows_live=yes])
|
|
Packit |
79f644 |
AC_ARG_WITH(windows-live-client-id,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-windows-live-client-id], [Windows Live OAuth 2.0 client id])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
if test "$with_windows_live_client_id" = ""; then
|
|
Packit |
79f644 |
with_windows_live_client_id=0000000044067703
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_WINDOWS_LIVE_CLIENT_ID, ["$with_windows_live_client_id"], [Windows Live OAuth 2.0 client id])
|
|
Packit |
79f644 |
if test "$enable_windows_live" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_WINDOWS_LIVE_ENABLED, 1, [Enable Windows Live data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Pocket
|
|
Packit |
79f644 |
AC_DEFINE(GOA_POCKET_NAME, ["pocket"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([pocket],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-pocket], [Enable Pocket provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_pocket=yes])
|
|
Packit |
79f644 |
AC_ARG_WITH(pocket-client-id,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-pocket-client-id], [Pocket OAuth 2.0 client id])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
if test "$with_pocket_client_id" = ""; then
|
|
Packit |
79f644 |
with_pocket_client_id="16630-40b25246b56e8ad5310b2883"
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_POCKET_CLIENT_ID, ["$with_pocket_client_id"], [Pocket OAuth 2.0 client id])
|
|
Packit |
79f644 |
if test "$enable_pocket" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_POCKET_ENABLED, 1, [Enable Pocket data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Kerberos
|
|
Packit |
79f644 |
AC_DEFINE(GOA_KERBEROS_NAME, ["kerberos"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([kerberos],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-kerberos], [Enable kerberos support])],
|
|
Packit |
79f644 |
[enable_kerberos=$enableval],
|
|
Packit |
79f644 |
[enable_kerberos=auto])
|
|
Packit |
79f644 |
AC_PATH_PROG([KRB5_CONFIG], krb5-config, none, $PATH:/usr/kerberos/bin)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
if test "x$KRB5_CONFIG" != "xnone"; then
|
|
Packit |
79f644 |
KRB5_LIBS="`${KRB5_CONFIG} --libs krb5`"
|
|
Packit |
79f644 |
KRB5_CFLAGS="`${KRB5_CONFIG} --cflags krb5`"
|
|
Packit |
79f644 |
PKG_CHECK_MODULES(GCR, gcr-3, [have_kerberos=yes], [have_kerberos=no])
|
|
Packit |
79f644 |
else
|
|
Packit |
79f644 |
KRB5_LIBS=""
|
|
Packit |
79f644 |
KRB5_CFLAGS=""
|
|
Packit |
79f644 |
have_kerberos=no
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_SUBST(KRB5_CFLAGS)
|
|
Packit |
79f644 |
AC_SUBST(KRB5_LIBS)
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
if test "$enable_kerberos" != "no"; then
|
|
Packit |
79f644 |
if test "$enable_kerberos" == "yes" &&
|
|
Packit |
79f644 |
test "$have_kerberos" == "no" ; then
|
|
Packit |
79f644 |
AC_MSG_ERROR([kerberos support requested, but not available])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
enable_kerberos=$have_kerberos
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
if test "$enable_kerberos" == "yes"; then
|
|
Packit |
79f644 |
AC_DEFINE(GCR_API_SUBJECT_TO_CHANGE, 1, [Define to use the GCR API])
|
|
Packit |
79f644 |
AC_DEFINE(GOA_KERBEROS_ENABLED, 1, [Enable Enterprise Identity data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
else
|
|
Packit |
79f644 |
enable_kerberos=no
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AM_CONDITIONAL(BUILD_KERBEROS, [test x$enable_kerberos != xno])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Last.fm
|
|
Packit |
79f644 |
AC_DEFINE(GOA_LASTFM_NAME, ["lastfm"], [ProviderType and extension point name])
|
|
Packit |
79f644 |
AC_ARG_ENABLE([lastfm],
|
|
Packit |
79f644 |
[AS_HELP_STRING([--enable-lastfm], [Enable Last.fm provider])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[enable_lastfm=no])
|
|
Packit |
79f644 |
AC_ARG_WITH(lastfm-client-id,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-lastfm-client-id], [Last.fm client id])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
AC_ARG_WITH(lastfm-client-secret,
|
|
Packit |
79f644 |
[AS_HELP_STRING([--with-lastfm-client-secret], [Last.fm client secret])],
|
|
Packit |
79f644 |
[],
|
|
Packit |
79f644 |
[])
|
|
Packit |
79f644 |
if test "$with_lastfm_client_id" = ""; then
|
|
Packit |
79f644 |
with_lastfm_client_id="7a2461fe34c9c8124fb28ac750ba12fa"
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
if test "$with_lastfm_client_secret" = ""; then
|
|
Packit |
79f644 |
with_lastfm_client_secret="49ec391644459c417f3afe57ca246c5a"
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_LASTFM_CLIENT_ID, ["$with_lastfm_client_id"], [LastFM client id])
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED(GOA_LASTFM_CLIENT_SECRET, ["$with_lastfm_client_secret"], [LastFM client secret])
|
|
Packit |
79f644 |
if test "$enable_lastfm" != "no"; then
|
|
Packit |
79f644 |
AC_DEFINE(GOA_LASTFM_ENABLED, 1, [Enable LastFM data provider])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Optional timerfd support
|
|
Packit |
79f644 |
AC_MSG_CHECKING([for timerfd support])
|
|
Packit |
79f644 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
|
Packit |
79f644 |
#include <sys/timerfd.h>
|
|
Packit |
79f644 |
#include <unistd.h>
|
|
Packit |
79f644 |
],[
|
|
Packit |
79f644 |
int
|
|
Packit |
79f644 |
main (void)
|
|
Packit |
79f644 |
{
|
|
Packit |
79f644 |
struct itimerspec timer_spec = { 0 };
|
|
Packit |
79f644 |
timerfd_settime (timerfd_create (CLOCK_MONOTONIC, TFD_CLOEXEC),
|
|
Packit |
79f644 |
TFD_TIMER_ABSTIME,
|
|
Packit |
79f644 |
&timer_spec,
|
|
Packit |
79f644 |
NULL);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
return 0;
|
|
Packit |
79f644 |
}
|
|
Packit |
79f644 |
])],
|
|
Packit |
79f644 |
[have_timerfd=yes],
|
|
Packit |
79f644 |
[have_timerfd=no])
|
|
Packit |
79f644 |
AC_MSG_RESULT($have_timerfd)
|
|
Packit |
79f644 |
if test x"$have_timerfd" = x"yes"; then
|
|
Packit |
79f644 |
AC_DEFINE(HAVE_TIMERFD, 1, [have timerfd support])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
dnl libc headers tend to trail kernel support
|
|
Packit |
79f644 |
dnl so compensate if necessary
|
|
Packit |
79f644 |
AC_MSG_CHECKING([for timerfd cancel-on-set support])
|
|
Packit |
79f644 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
|
Packit |
79f644 |
#include <sys/timerfd.h>
|
|
Packit |
79f644 |
#include <unistd.h>
|
|
Packit |
79f644 |
],[
|
|
Packit |
79f644 |
int
|
|
Packit |
79f644 |
main (void)
|
|
Packit |
79f644 |
{
|
|
Packit |
79f644 |
struct itimerspec timer_spec = { 0 };
|
|
Packit |
79f644 |
timerfd_settime (timerfd_create (CLOCK_MONOTONIC, TFD_CLOEXEC),
|
|
Packit |
79f644 |
TFD_TIMER_ABSTIME | TFD_TIMER_CANCEL_ON_SET,
|
|
Packit |
79f644 |
&timer_spec,
|
|
Packit |
79f644 |
NULL);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
return 0;
|
|
Packit |
79f644 |
}
|
|
Packit |
79f644 |
])],
|
|
Packit |
79f644 |
[have_tfd_timer_cancel_on_set=yes],
|
|
Packit |
79f644 |
[have_tfd_timer_cancel_on_set=no])
|
|
Packit |
79f644 |
AC_MSG_RESULT($have_tfd_timer_cancel_on_set)
|
|
Packit |
79f644 |
if test x"$have_tfd_timer_cancel_on_set" = x"no"; then
|
|
Packit |
79f644 |
AC_DEFINE(TFD_TIMER_CANCEL_ON_SET, [(1 << 1)], [have timerfd support])
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Internationalization
|
|
Packit |
79f644 |
#
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GETTEXT_PACKAGE=gnome-online-accounts
|
|
Packit |
79f644 |
AC_SUBST([GETTEXT_PACKAGE])
|
|
Packit |
79f644 |
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AX_REQUIRE_DEFINED([AM_GNU_GETTEXT_VERSION])
|
|
Packit |
79f644 |
AM_GNU_GETTEXT_VERSION([0.19.8])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AX_REQUIRE_DEFINED([AM_GNU_GETTEXT])
|
|
Packit |
79f644 |
AM_GNU_GETTEXT([external])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# goaconfig.h
|
|
Packit |
79f644 |
#
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_CONFIG_COMMANDS([src/goa/goaconfig.h],
|
|
Packit |
79f644 |
[
|
|
Packit |
79f644 |
outfile=src/goa/goaconfig.h-tmp
|
|
Packit |
79f644 |
cat > $outfile <<\_______EOF
|
|
Packit |
79f644 |
/* goaconfig.h
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This is a generated file. Please modify 'configure.ac'
|
|
Packit |
79f644 |
*/
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#ifndef __GOA_CONFIG_H__
|
|
Packit |
79f644 |
#define __GOA_CONFIG_H__
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_BEGIN_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
_______EOF
|
|
Packit |
79f644 |
echo "#define GOA_MAJOR_VERSION $GOA_MAJOR_VERSION" >> $outfile
|
|
Packit |
79f644 |
echo "#define GOA_MINOR_VERSION $GOA_MINOR_VERSION" >> $outfile
|
|
Packit |
79f644 |
echo "#define GOA_MICRO_VERSION $GOA_MICRO_VERSION" >> $outfile
|
|
Packit |
79f644 |
cat >> $outfile <<\_______EOF
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_END_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#endif /* __GOA_CONFIG_H__ */
|
|
Packit |
79f644 |
_______EOF
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
if cmp -s $outfile src/goa/goaconfig.h; then
|
|
Packit |
79f644 |
AC_MSG_NOTICE([src/goa/goaconfig.h is unchanged])
|
|
Packit |
79f644 |
rm -f $outfile
|
|
Packit |
79f644 |
else
|
|
Packit |
79f644 |
mv $outfile src/goa/goaconfig.h
|
|
Packit |
79f644 |
fi
|
|
Packit |
79f644 |
],[
|
|
Packit |
79f644 |
GOA_MAJOR_VERSION=$GOA_MAJOR_VERSION
|
|
Packit |
79f644 |
GOA_MINOR_VERSION=$GOA_MINOR_VERSION
|
|
Packit |
79f644 |
GOA_MICRO_VERSION=$GOA_MICRO_VERSION
|
|
Packit |
79f644 |
])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
# Generate
|
|
Packit |
79f644 |
#
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
AC_OUTPUT([
|
|
Packit |
79f644 |
Makefile
|
|
Packit |
79f644 |
data/Makefile
|
|
Packit |
79f644 |
data/icons/Makefile
|
|
Packit |
79f644 |
data/icons/16x16/Makefile
|
|
Packit |
79f644 |
data/icons/22x22/Makefile
|
|
Packit |
79f644 |
data/icons/24x24/Makefile
|
|
Packit |
79f644 |
data/icons/32x32/Makefile
|
|
Packit |
79f644 |
data/icons/48x48/Makefile
|
|
Packit |
79f644 |
data/icons/96x96/Makefile
|
|
Packit |
79f644 |
data/icons/256x256/Makefile
|
|
Packit |
79f644 |
src/Makefile
|
|
Packit |
79f644 |
src/goa/Makefile
|
|
Packit |
79f644 |
src/goa/goa-1.0.pc
|
|
Packit |
79f644 |
src/goabackend/Makefile
|
|
Packit |
79f644 |
src/goabackend/goa-backend-1.0.pc
|
|
Packit |
79f644 |
src/goaidentity/Makefile
|
|
Packit |
79f644 |
src/daemon/Makefile
|
|
Packit |
79f644 |
src/examples/Makefile
|
|
Packit |
79f644 |
po/Makefile.in
|
|
Packit |
79f644 |
doc/Makefile
|
|
Packit |
79f644 |
doc/version.xml
|
|
Packit |
79f644 |
])
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
dnl ==========================================================================
|
|
Packit |
79f644 |
echo "
|
|
Packit |
79f644 |
gnome-online-accounts $VERSION
|
|
Packit |
79f644 |
===============================
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
prefix: ${prefix}
|
|
Packit |
79f644 |
libdir: ${libdir}
|
|
Packit |
79f644 |
libexecdir: ${libexecdir}
|
|
Packit |
79f644 |
bindir: ${bindir}
|
|
Packit |
79f644 |
sbindir: ${sbindir}
|
|
Packit |
79f644 |
datadir: ${datadir}
|
|
Packit |
79f644 |
sysconfdir: ${sysconfdir}
|
|
Packit |
79f644 |
localstatedir: ${localstatedir}
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
compiler: ${CC}
|
|
Packit |
79f644 |
cflags: ${CFLAGS}
|
|
Packit |
79f644 |
cppflags: ${CPPFLAGS}
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
backend: ${enable_backend}
|
|
Packit |
79f644 |
inspector: ${enable_inspector}
|
|
Packit |
79f644 |
introspection: ${found_introspection}
|
|
Packit |
79f644 |
template file: ${with_template_file}
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
Flickr provider: ${enable_flickr} (OAuth 1.0, key:${with_flickr_consumer_key} secret:${with_flickr_consumer_secret})
|
|
Packit |
79f644 |
Foursquare provider: ${enable_foursquare} (id:${with_foursquare_client_id})
|
|
Packit |
79f644 |
Google provider: ${enable_google} (OAuth 2.0, id:${with_google_client_id} secret:${with_google_client_secret})
|
|
Packit |
79f644 |
IMAP/SMTP provider: ${enable_imap_smtp}
|
|
Packit |
79f644 |
Media Server provider: ${enable_media_server}
|
|
Packit |
79f644 |
Microsoft Exchange provider: ${enable_exchange}
|
|
Packit |
79f644 |
ownCloud provider: ${enable_owncloud}
|
|
Packit |
79f644 |
Kerberos provider: ${enable_kerberos}
|
|
Packit |
79f644 |
Facebook provider: ${enable_facebook} (OAuth 2.0, id:${with_facebook_client_id})
|
|
Packit |
79f644 |
Todoist provider: ${enable_todoist} (OAuth 2.0, id:${with_todoist_client_id} secret:${with_todoist_client_secret})
|
|
Packit |
79f644 |
Windows Live provider: ${enable_windows_live} (OAuth 2.0, id:${with_windows_live_client_id})
|
|
Packit |
79f644 |
Telepathy provider: ${enable_telepathy}
|
|
Packit |
79f644 |
Pocket provider: ${enable_pocket} (id:${with_pocket_client_id})
|
|
Packit |
79f644 |
Last.fm provider: ${enable_lastfm} (id:${with_lastfm_client_id} secret:${with_lastfm_client_secret})
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
Maintainer mode: ${USE_MAINTAINER_MODE}
|
|
Packit |
79f644 |
Building api docs: ${enable_gtk_doc}
|
|
Packit |
79f644 |
"
|