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