1
by Alberto Mardegan
Initial upload |
1 |
dnl Process this file with autoconf to produce a configure script. |
2 |
||
41.1.3
by David King
Update autoconf usage in configure.ac |
3 |
AC_INIT([account-plugins], |
138.2.2
by Alberto Mardegan
Version 0.12 |
4 |
[0.12], |
69.1.1
by David King
Correct project URLs in configure.ac |
5 |
[https://bugs.launchpad.net/online-accounts-account-plugins/+filebug], |
41.1.3
by David King
Update autoconf usage in configure.ac |
6 |
[account-plugins], |
69.1.1
by David King
Correct project URLs in configure.ac |
7 |
[https://launchpad.net/online-accounts-account-plugins]) |
1
by Alberto Mardegan
Initial upload |
8 |
|
84.1.1
by David King
Enable automake silent rules |
9 |
AM_INIT_AUTOMAKE([1.10 -Wall -Wno-portability silent-rules subdir-objects]) |
1
by Alberto Mardegan
Initial upload |
10 |
AM_CONFIG_HEADER(config.h) |
11 |
||
12 |
# Gobject Introspection |
|
13 |
AC_CONFIG_MACRO_DIR([m4]) |
|
14 |
GOBJECT_INTROSPECTION_CHECK([1.30.0]) |
|
15 |
||
19.1.1
by Alberto Mardegan
Add Facebook and Google plugins. |
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 |
||
69.1.2
by David King
Add intltool support to build system |
24 |
IT_PROG_INTLTOOL([0.50.0]) |
69.1.3
by David King
Extract strings from provider and service files |
25 |
AC_SUBST([GETTEXT_PACKAGE], [$PACKAGE_TARNAME]) |
69.1.2
by David King
Add intltool support to build system |
26 |
|
76.1.1
by David King
Depend on pkg-config 0.24 |
27 |
PKG_PROG_PKG_CONFIG([0.24]) |
28 |
||
113.2.1
by Alberto Mardegan
Add flickr and twitter plugins |
29 |
AS_IF([test "x$prefix" = "xNONE"], |
30 |
[real_prefix=$ac_default_prefix], |
|
31 |
[real_prefix=$prefix]) |
|
32 |
||
76.1.2
by David King
Add ability to disable binary plugins at configure time |
33 |
# Binary account plugins. |
34 |
AC_ARG_ENABLE([libaccount-plugin], |
|
35 |
[AS_HELP_STRING([--disable-libaccount-plugin], |
|
36 |
[build without support for libaccount-plugin (binary account plugins)])]) |
|
37 |
||
38 |
AS_IF([test "x$enable_libaccount_plugin" != "xno"], |
|
39 |
[PKG_CHECK_EXISTS([account-plugin], [have_libaccount_plugin=yes], |
|
40 |
[have_libaccount_plugin=no])], |
|
41 |
[have_libaccount_plugin=no]) |
|
42 |
||
43 |
AS_IF([test "x$have_libaccount_plugin" = "xyes"], |
|
89.2.3
by Alberto Mardegan
Update libaccount-plugin dependency version |
44 |
[PKG_CHECK_MODULES([ACCOUNT_PLUGINS], [account-plugin >= 0.1.3])], |
76.1.2
by David King
Add ability to disable binary plugins at configure time |
45 |
[AS_IF([test "x$enable_libaccount_plugin" = "xyes"], |
46 |
[AC_MSG_ERROR([libaccount-plugin support enabled but required dependencies were not found])])]) |
|
47 |
||
48 |
AM_CONDITIONAL([ENABLE_LIBACCOUNT_PLUGIN], |
|
49 |
[test "x$have_libaccount_plugin" = "xyes"]) |
|
50 |
||
51 |
# XML data files for libaccounts-glib. |
|
76.1.1
by David King
Depend on pkg-config 0.24 |
52 |
PKG_CHECK_EXISTS([libaccounts-glib]) |
53 |
||
54 |
AC_SUBST([plugindir], |
|
113.2.1
by Alberto Mardegan
Add flickr and twitter plugins |
55 |
[`$PKG_CONFIG --variable provider_plugindir --define-variable=prefix=$real_prefix account-plugin`]) |
56 |
||
57 |
# QML account plugins. |
|
58 |
AC_ARG_ENABLE([qml-plugins], |
|
59 |
[AS_HELP_STRING([--disable-qml-plugins], |
|
60 |
[build without support for QML plugins for Ubuntu Touch])]) |
|
61 |
||
62 |
AS_IF([test "x$enable_qml_plugins" != "xno"], |
|
113.2.6
by Alberto Mardegan
Force installation of QML plugins if specified at configuration time |
63 |
[have_uoa_plugin=yes]) |
113.2.1
by Alberto Mardegan
Add flickr and twitter plugins |
64 |
|
65 |
AM_CONDITIONAL([ENABLE_QML_PLUGINS], |
|
113.2.2
by Alberto Mardegan
uoa touch rename |
66 |
[test "x$have_uoa_plugin" = "xyes"]) |
113.2.1
by Alberto Mardegan
Add flickr and twitter plugins |
67 |
|
68 |
# QML plugins installation path |
|
69 |
AC_SUBST([qmlpluginsdir], |
|
113.2.2
by Alberto Mardegan
uoa touch rename |
70 |
[`$PKG_CONFIG --variable plugin_qml_dir --define-variable=prefix=$real_prefix OnlineAccountsPlugin`]) |
113.3.1
by Ken VanDine
Added a hard-coded path for qmlpluginsdir if pkgconfig failed to get it, this |
71 |
AC_MSG_CHECKING(for qmlplugins directory) |
72 |
if test "x$qmlpluginsdir" = "x" ; then |
|
73 |
# fallback if the previous failed |
|
74 |
qmlpluginsdir="$real_prefix/share/accounts/qml-plugins" |
|
75 |
fi
|
|
113.2.1
by Alberto Mardegan
Add flickr and twitter plugins |
76 |
|
77 |
# libaccounts providers and service files |
|
76.1.1
by David King
Depend on pkg-config 0.24 |
78 |
AC_SUBST([providersdir], |
113.2.1
by Alberto Mardegan
Add flickr and twitter plugins |
79 |
[`$PKG_CONFIG --variable providerfilesdir --define-variable=prefix=$real_prefix libaccounts-glib`]) |
76.1.1
by David King
Depend on pkg-config 0.24 |
80 |
|
81 |
AC_SUBST([servicesdir], |
|
113.2.1
by Alberto Mardegan
Add flickr and twitter plugins |
82 |
[`$PKG_CONFIG --variable servicefilesdir --define-variable=prefix=$real_prefix libaccounts-glib`]) |
1
by Alberto Mardegan
Initial upload |
83 |
|
84.1.4
by David King
Force tests to be enabled during distcheck |
84 |
AC_ARG_ENABLE([TESTS], |
85 |
[AS_HELP_STRING([--disable-tests], [Disable tests])]) |
|
86 |
||
87 |
AS_IF([test "x$enable_tests" != "xno"], |
|
88 |
[AC_PATH_PROG([XMLLINT], [xmllint], [notfound]) |
|
89 |
AS_IF([test "x$XMLLINT" = "xnotfound"], |
|
90 |
[have_xmllint=no], |
|
91 |
[have_xmllint=yes])]) |
|
84.1.2
by David King
Add tests for well-formed XML files |
92 |
|
93 |
AS_IF([test "x$have_xmllint" = "xyes"], |
|
94 |
[AC_SUBST([XMLLINT])], |
|
84.1.4
by David King
Force tests to be enabled during distcheck |
95 |
[AS_IF([test "x$enable_tests" = "xyes"], |
96 |
[AC_MSG_ERROR([testing support enabled but required dependencies were not found])])]) |
|
84.1.2
by David King
Add tests for well-formed XML files |
97 |
|
98 |
AM_CONDITIONAL([HAVE_XMLLINT], [test "x$have_xmllint" = "xyes"]) |
|
99 |
||
36.1.1
by Ken VanDine
let the default twitter key/secret be overridden with configure arguments: |
100 |
# Set Twitter consumer key/secret |
101 |
AC_ARG_WITH(twitter-consumer-key, |
|
102 |
[AS_HELP_STRING([--with-twitter-consumer-key], |
|
103 |
[Twitter consumer key])], |
|
104 |
[twitter_consumer_key=$withval], |
|
105 |
[twitter_consumer_key="mkFv4kTQ89G6J8fB3rxg"]) |
|
106 |
AC_ARG_WITH(twitter-consumer-secret, |
|
107 |
[AS_HELP_STRING([--with-twitter-consumer-secret], |
|
108 |
[Twitter consumer secret])], |
|
109 |
[twitter_consumer_secret=$withval], |
|
110 |
[twitter_consumer_secret="9fvOe8rtOXUeO5MynIaU1JtDEKeQaYmvOt1AjLavHw"]) |
|
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
111 |
AC_SUBST(TWITTER_CONSUMER_KEY, ["$twitter_consumer_key"]) |
112 |
AC_SUBST(TWITTER_CONSUMER_SECRET, ["$twitter_consumer_secret"]) |
|
36.1.1
by Ken VanDine
let the default twitter key/secret be overridden with configure arguments: |
113 |
|
95.1.4
by Jonathan Davies
Put LinkedIn consumer key/secret into configure.ac. |
114 |
# Set LinkedIn consumer key/secret. |
115 |
AC_ARG_WITH(linkedin-consumer-key, |
|
116 |
[AS_HELP_STRING([--with-linkedin-consumer-key], |
|
117 |
[LinkedIn consumer key])], |
|
118 |
[linkedin_consumer_key=$withval], |
|
119 |
[linkedin_consumer_key="34gnzrg96iq5"]) |
|
120 |
AC_ARG_WITH(linkedin-consumer-secret, |
|
121 |
[AS_HELP_STRING([--with-linkedin-consumer-secret], |
|
122 |
[LinkedIn consumer secret])], |
|
123 |
[linkedin_consumer_secret=$withval], |
|
124 |
[linkedin_consumer_secret="BazRki2LE8eZtcqh"]) |
|
125 |
AC_SUBST(LINKEDIN_CONSUMER_KEY, ["$linkedin_consumer_key"]) |
|
126 |
AC_SUBST(LINKEDIN_CONSUMER_SECRET, ["$linkedin_consumer_secret"]) |
|
127 |
||
98.1.2
by Andrew Starr-Bochicchio
Add Instagram client id/secret. |
128 |
# Set Instagram client id/secret. |
129 |
AC_ARG_WITH(instagram-client-id, |
|
130 |
[AS_HELP_STRING([--with-instagram-client-id], |
|
131 |
[instagram client id])], |
|
132 |
[instagram_client_id=$withval], |
|
133 |
[instagram_client_id="01c3df41a2274a14882adea8e8ebbd46"]) |
|
134 |
AC_ARG_WITH(instagram-client-secret, |
|
135 |
[AS_HELP_STRING([--with-instagram-client-secret], |
|
136 |
[instagram client secret])], |
|
137 |
[instagram_client_secret=$withval], |
|
138 |
[instagram_client_secret="4751ccdc39c648719ea83cfb1c866c26"]) |
|
139 |
AC_SUBST(INSTAGRAM_CLIENT_ID, ["$instagram_client_id"]) |
|
140 |
AC_SUBST(INSTAGRAM_CLIENT_SECRET, ["$instagram_client_secret"]) |
|
98.1.1
by Andrew Starr-Bochicchio
Added account-plugin-instagram (LP: #1167449). |
141 |
|
36.1.2
by Ken VanDine
let the default facebook clientid be overridden with configure arguments: |
142 |
# Set Facebook client id |
143 |
AC_ARG_WITH(facebook-client-id, |
|
144 |
[AS_HELP_STRING([--with-facebook-client-id], |
|
145 |
[Facebook client ID])], |
|
146 |
[facebook_client_id=$withval], |
|
147 |
[facebook_client_id="302061903208115"]) |
|
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
148 |
AC_SUBST(FACEBOOK_CLIENT_ID, ["$facebook_client_id"]) |
36.1.2
by Ken VanDine
let the default facebook clientid be overridden with configure arguments: |
149 |
|
36.1.3
by Ken VanDine
let the default flickr key/secret be overridden with configure arguments: |
150 |
# Set Flickr consumer key/secret |
151 |
AC_ARG_WITH(flickr-consumer-key, |
|
152 |
[AS_HELP_STRING([--with-flickr-consumer-key], |
|
153 |
[Flickr consumer key])], |
|
154 |
[flickr_consumer_key=$withval], |
|
155 |
[flickr_consumer_key="4aa0260d1eccfe968bb9f214f18e46fe"]) |
|
156 |
AC_ARG_WITH(flickr-consumer-secret, |
|
157 |
[AS_HELP_STRING([--with-flickr-consumer-secret], |
|
158 |
[Flickr consumer secret])], |
|
159 |
[flickr_consumer_secret=$withval], |
|
160 |
[flickr_consumer_secret="cbb9e94a8c3fe831"]) |
|
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
161 |
AC_SUBST(FLICKR_CONSUMER_KEY, ["$flickr_consumer_key"]) |
162 |
AC_SUBST(FLICKR_CONSUMER_SECRET, ["$flickr_consumer_secret"]) |
|
36.1.3
by Ken VanDine
let the default flickr key/secret be overridden with configure arguments: |
163 |
|
36.1.4
by Ken VanDine
let the default google clientid be overridden with configure arguments: |
164 |
# Set Google client id |
165 |
AC_ARG_WITH(google-client-id, |
|
166 |
[AS_HELP_STRING([--with-google-client-id], |
|
167 |
[Google client ID])], |
|
168 |
[google_client_id=$withval], |
|
169 |
[google_client_id="995235780104-c3nepmjkcetqua2ao9797r5j38leb3e4.apps.googleusercontent.com"]) |
|
49.1.1
by Alberto Mardegan
Google: put refresh tokens into use |
170 |
AC_ARG_WITH(google-client-secret, |
171 |
[AS_HELP_STRING([--with-google-client-secret], |
|
172 |
[Google client secret])], |
|
173 |
[google_client_secret=$withval], |
|
174 |
[google_client_secret="NCB6sQ1OHn3-OamBu8-98M31"]) |
|
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
175 |
AC_SUBST(GOOGLE_CLIENT_ID, ["$google_client_id"]) |
176 |
AC_SUBST(GOOGLE_CLIENT_SECRET, ["$google_client_secret"]) |
|
36.1.4
by Ken VanDine
let the default google clientid be overridden with configure arguments: |
177 |
|
41.1.1
by David King
Add Foursquare plugin |
178 |
# Set Foursquare client id |
179 |
AC_ARG_WITH(foursquare-client-id, |
|
180 |
[AS_HELP_STRING([--with-foursquare-client-id], |
|
181 |
[Foursquare client ID])], |
|
182 |
[foursquare_client_id=$withval], |
|
183 |
[foursquare_client_id="BA0GOA0K3PTRS1KUJ5TTZ1P3GDRH3VJEEXY4N44ROPUJYKPW"]) |
|
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
184 |
AC_SUBST(FOURSQUARE_CLIENT_ID, ["$foursquare_client_id"]) |
41.1.1
by David King
Add Foursquare plugin |
185 |
|
41.1.2
by David King
Add identi.ca plugin |
186 |
# Set identi.ca consumer key/secret |
187 |
AC_ARG_WITH(identica-consumer-key, |
|
188 |
[AS_HELP_STRING([--with-identica-consumer-key], |
|
189 |
[identi.ca consumer key])], |
|
190 |
[identica_consumer_key=$withval], |
|
191 |
[identica_consumer_key="anonymous"]) |
|
192 |
AC_ARG_WITH(identica-consumer-secret, |
|
193 |
[AS_HELP_STRING([--with-identica-consumer-secret], |
|
194 |
[identi.ca consumer secret])], |
|
195 |
[identica_consumer_secret=$withval], |
|
196 |
[identica_consumer_secret="anonymous"]) |
|
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
197 |
AC_SUBST(IDENTICA_CONSUMER_KEY, ["$identica_consumer_key"]) |
198 |
AC_SUBST(IDENTICA_CONSUMER_SECRET, ["$identica_consumer_secret"]) |
|
41.1.2
by David King
Add identi.ca plugin |
199 |
|
97.1.1
by Zhang Zhao
Fix sina authentication |
200 |
# Set Sina client id/secret |
201 |
AC_ARG_WITH(sina-client-id, |
|
202 |
[AS_HELP_STRING([--with-sina-client-id], |
|
203 |
[Sina client id])], |
|
204 |
[sina_client_id=$withval], |
|
205 |
[sina_client_id="3011480316"]) |
|
206 |
AC_ARG_WITH(sina-client-secret, |
|
207 |
[AS_HELP_STRING([--with-sina-client-secret], |
|
208 |
[Sina client secret])], |
|
209 |
[sina_client_secret=$withval], |
|
210 |
[sina_client_secret="bb66bd5dacdaa84ee2917e1162359b48"]) |
|
211 |
AC_SUBST(SINA_CLIENT_ID, ["$sina_client_id"]) |
|
212 |
AC_SUBST(SINA_CLIENT_SECRET, ["$sina_client_secret"]) |
|
42.1.1
by David King
Add Sina plugin |
213 |
|
97.2.1
by kobe
authentication of Sohu using oAuth2.0 |
214 |
# Set Sohu client id/secret |
215 |
AC_ARG_WITH(sohu-client-id, |
|
216 |
[AS_HELP_STRING([--with-sohu-client-id], |
|
217 |
[Sohu client id])], |
|
218 |
[sohu_client_id=$withval], |
|
219 |
[sohu_client_id="dXucVvzJseF3wFfeDBqE"]) |
|
220 |
AC_ARG_WITH(sohu-client-secret, |
|
221 |
[AS_HELP_STRING([--with-sohu-client-secret], |
|
222 |
[Sohu client secret])], |
|
223 |
[sohu_client_secret=$withval], |
|
224 |
[sohu_client_secret="XuOg9=djoUMA%BRRPO)X=(8FExQz8T$9DahIj=9u"]) |
|
225 |
AC_SUBST(SOHU_CLIENT_ID, ["$sohu_client_id"]) |
|
226 |
AC_SUBST(SOHU_CLIENT_SECRET, ["$sohu_client_secret"]) |
|
42.1.2
by David King
Add Sohu plugin |
227 |
|
51.1.2
by Xavier Claessens
Add Windows Live Messenger service |
228 |
# Set Windows Live client id |
229 |
AC_ARG_WITH(windows-live-client-id, |
|
230 |
[AS_HELP_STRING([--with-windows-live-client-id], |
|
231 |
[Windows Live client ID])], |
|
232 |
[windows_live_client_id=$withval], |
|
52.1.1
by Alberto Mardegan
WindowsLive: new app ID, get refresh token |
233 |
[windows_live_client_id="00000000480CBF28"]) |
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
234 |
AC_SUBST(WINDOWS_LIVE_CLIENT_ID, ["$windows_live_client_id"]) |
51.1.2
by Xavier Claessens
Add Windows Live Messenger service |
235 |
|
41.1.3
by David King
Update autoconf usage in configure.ac |
236 |
AC_CONFIG_FILES([ |
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
237 |
data/providers/facebook.provider.in
|
238 |
data/providers/flickr.provider.in
|
|
239 |
data/providers/foursquare.provider.in
|
|
240 |
data/providers/google.provider.in
|
|
241 |
data/providers/identica.provider.in
|
|
95.1.14
by Jonathan Davies
Alphabetical order on these files too. |
242 |
data/providers/linkedin.provider.in
|
98.1.1
by Andrew Starr-Bochicchio
Added account-plugin-instagram (LP: #1167449). |
243 |
data/providers/instagram.provider.in
|
89.3.1
by Alberto Mardegan
Add a generic OAuth plugin |
244 |
data/providers/sina.provider.in
|
245 |
data/providers/sohu.provider.in
|
|
246 |
data/providers/twitter.provider.in
|
|
247 |
data/providers/windows-live.provider.in
|
|
1
by Alberto Mardegan
Initial upload |
248 |
Makefile
|
69.1.2
by David King
Add intltool support to build system |
249 |
po/Makefile.in
|
113.2.1
by Alberto Mardegan
Add flickr and twitter plugins |
250 |
qml/Makefile
|
1
by Alberto Mardegan
Initial upload |
251 |
]) |
41.1.3
by David King
Update autoconf usage in configure.ac |
252 |
AC_OUTPUT
|