1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT([account-plugins],
[0.4],
[https://bugs.launchpad.net/opensesame-account-plugins/+filebug],
[account-plugins],
[https://launchpad.net/opensesame-account-plugins])
AM_INIT_AUTOMAKE([1.10 -Wall -Wno-portability subdir-objects])
AM_CONFIG_HEADER(config.h)
# Gobject Introspection
AC_CONFIG_MACRO_DIR([m4])
GOBJECT_INTROSPECTION_CHECK([1.30.0])
# Check for programs
AC_PROG_CC
AM_PROG_CC_C_O
OVERRIDE_PROG_VALAC([0.15.1], [valac-0.16 valac-0.14 valac])
LT_PREREQ([2.2])
LT_INIT([disable-static])
PKG_CHECK_MODULES(ACCOUNT_PLUGINS,
account-plugin)
AC_SUBST(ACCOUNT_PLUGINS_CFLAGS)
AC_SUBST(ACCOUNT_PLUGINS_LIBS)
plugindir=`$PKG_CONFIG --variable provider_plugindir account-plugin`
AC_SUBST(plugindir)
providersdir=`$PKG_CONFIG --variable providerfilesdir libaccounts-glib`
AC_SUBST(providersdir)
servicesdir=`$PKG_CONFIG --variable servicefilesdir libaccounts-glib`
AC_SUBST(servicesdir)
# Set Github consumer key/secret
AC_ARG_WITH(github-consumer-key,
[AS_HELP_STRING([--with-github-consumer-key],
[Github consumer key])],
[github_consumer_key=$withval],
[github_consumer_key="7001789446aaa3c4b46c"])
AC_ARG_WITH(github-consumer-secret,
[AS_HELP_STRING([--with-github-consumer-secret],
[Github consumer secret])],
[github_consumer_secret=$withval],
[github_consumer_secret="9aad8313832e24306757d9e4405d4b131109d8d8"])
AC_DEFINE_UNQUOTED(GITHUB_CONSUMER_KEY, ["$github_consumer_key"], [Github consumer key])
AC_DEFINE_UNQUOTED(GITHUB_CONSUMER_SECRET, ["$github_consumer_secret"], [Github consumer secret])
AC_CONFIG_FILES([
Makefile
data/Makefile
data/icons/Makefile
data/providers/Makefile
data/services/Makefile
data/webkit-options/Makefile
])
AC_OUTPUT
|