~cszikszoy/do-plugins/fix-confluence

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Alex Launi
  • Date: 2008-04-03 16:42:36 UTC
  • mfrom: (85 do-plugins)
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: alex.launi@gmail.com-20080403164236-6ut2l710phmv92o5
clean up

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_PREREQ(2.61)
2
 
AC_INIT([Do-plugins],[0.4.0])
3
 
 
4
 
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
5
 
AM_MAINTAINER_MODE
6
 
 
7
 
AC_PROG_INSTALL
8
 
 
9
 
dnl pkg-config
10
 
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
11
 
if test "x$PKG_CONFIG" = "xno"; then
12
 
        AC_MSG_ERROR([You need to install pkg-config])
13
 
fi
14
 
 
15
 
dnl Handle various possible C# compilers
16
 
AC_PATH_PROG(CSC, csc, no)
17
 
AC_PATH_PROG(GMCS, gmcs, no)
18
 
AC_PATH_PROG(RUNTIME, mono, no)
19
 
CS="C#"
20
 
 
21
 
if test "x$CSC" = "xno" ; then
22
 
        if test "x$GMCS" = "xno" ; then
23
 
                if test "x$MCS" = "xno" ; then
24
 
                        AC_MSG_ERROR([No $CS compiler found])
25
 
                else
26
 
                        CSC=$MCS
27
 
                        ENABLE_DBUS="no"
28
 
                fi
29
 
        else
30
 
                CSC=$GMCS
31
 
        fi
32
 
fi
33
 
 
34
 
AC_SUBST(CSC)
35
 
AC_SUBST(RUNTIME)
36
 
 
37
 
dnl - Check dependencies
38
 
 
39
 
PKG_CHECK_MODULES([DO_ADDINS], [do.addins])
40
 
PKG_CHECK_MODULES([DO_DBUS], [do.dbus])
41
 
 
42
 
AC_SUBST(DO_ADDINS_LIBS)
43
 
AC_SUBST(DO_DBUS_LIBS)
44
 
 
45
 
 
46
 
dnl - Evolution plugin
47
 
 
48
 
AC_ARG_ENABLE([evolution-plugin],
49
 
        AS_HELP_STRING([--enable-evolution-plugin],[Enable the Evolution plugin]),
50
 
        enable_evo_plugin=$enableval,
51
 
        enable_evo_plugin=auto)
52
 
 
53
 
if test "x$enable_evo_plugin" != "xno" ; then
54
 
PKG_CHECK_MODULES([EVOLUTION_SHARP],
55
 
                  [evolution-sharp],
56
 
                  has_evo_deps=yes,
57
 
                  has_evo_deps=no)
58
 
AC_SUBST(EVOLUTION_SHARP_LIBS)
59
 
fi
60
 
 
61
 
if test "x$has_evo_deps" = "xno" ; then
62
 
        if test "x$enable_evo_plugin" = "xyes" ; then
63
 
                dnl Error out if explicitly asked for the Evolution plugin
64
 
                AC_MSG_ERROR([Could not find evolution-sharp])
65
 
        fi
66
 
        enable_evo_plugin="no"
67
 
else
68
 
        if test "x$enable_evo_plugin" = "xauto" ; then
69
 
                enable_evo_plugin="yes"
70
 
        fi
71
 
fi
72
 
 
73
 
AM_CONDITIONAL(ENABLE_EVO_PLUGIN, test "x$enable_evo_plugin" = "xyes")
74
 
 
75
 
dnl - Amarok plugin
76
 
AC_ARG_ENABLE([amarok-plugin],
77
 
        AS_HELP_STRING([--enable-amarok-plugin],[Enable the Amarok plugin]),
78
 
        enable_amarok_plugin=$enableval,
79
 
        enable_amarok_plugin=yes)
80
 
 
81
 
AM_CONDITIONAL(ENABLE_AMAROK_PLUGIN, test "x$enable_amarok_plugin" = "xyes")
82
 
 
83
 
dnl - OpenSearch plugin
84
 
AC_ARG_ENABLE([opensearch-plugin],
85
 
        AS_HELP_STRING([--enable-opensearch-plugin],[Enable the OpenSearch plugin]),
86
 
        enable_opensearch_plugin=$enableval,
87
 
        enable_opensearch_plugin=yes)
88
 
 
89
 
AM_CONDITIONAL(ENABLE_OPENSEARCH_PLUGIN, 
90
 
               test "x$enable_opensearch_plugin" = "xyes")
91
 
 
92
 
dnl - Pastebin plugin
93
 
AC_ARG_ENABLE([pastebin-plugin],
94
 
        AS_HELP_STRING([--enable-pastebin-plugin],[Enable the Pastebin plugin]),
95
 
        enable_pastebin_plugin=$enableval,
96
 
        enable_pastebin_plugin=yes)
97
 
 
98
 
AM_CONDITIONAL(ENABLE_PASTEBIN_PLUGIN, test "x$enable_pastebin_plugin" = "xyes")
99
 
 
100
 
dnl - Banshee plugin
101
 
AC_ARG_ENABLE([banshee-plugin],
102
 
        AS_HELP_STRING([--enable-banshee-plugin],[Enable the Banshee plugin]),
103
 
        enable_banshee_plugin=$enableval,
104
 
        enable_banshee_plugin=auto)
105
 
 
106
 
if test "x$enable_banshee_plugin" != "xno" ; then
107
 
PKG_CHECK_MODULES([NDESK_DBUS],
108
 
                  [ndesk-dbus-1.0 ndesk-dbus-glib-1.0],
109
 
                  has_banshee_deps=yes,
110
 
                  has_banshee_deps=no)
111
 
AC_SUBST(NDESK_DBUS_LIBS)
112
 
fi
113
 
 
114
 
if test "x$has_banshee_deps" = "xno" ; then
115
 
        if test "x$enable_banshee_plugin" = "xyes" ; then
116
 
                dnl Error out if explicitly asked for the BANSHEE plugin
117
 
                AC_MSG_ERROR([Could not find ndesk-dbus or ndesk-dbus-glib])
118
 
        fi
119
 
        enable_banshee_plugin="no"
120
 
else
121
 
        if test "x$enable_banshee_plugin" = "xauto" ; then
122
 
                enable_banshee_plugin="yes"
123
 
        fi
124
 
fi
125
 
 
126
 
AM_CONDITIONAL(ENABLE_BANSHEE_PLUGIN, test "x$enable_banshee_plugin" = "xyes")
127
 
 
128
 
 
129
 
dnl - SSH plugin
130
 
AC_ARG_ENABLE([ssh-plugin],
131
 
        AS_HELP_STRING([--enable-ssh-plugin],[Enable the SSH plugin]),
132
 
        enable_ssh_plugin=$enableval,
133
 
        enable_ssh_plugin=yes)
134
 
 
135
 
if test "x$enable_ssh_plugin" != "xno" ; then
136
 
PKG_CHECK_MODULES([GCONF_SHARP],
137
 
                  [gconf-sharp-2.0],
138
 
                  has_ssh_deps=yes,
139
 
                  has_ssh_deps=no)
140
 
AC_SUBST(GCONF_SHARP_LIBS)
141
 
fi
142
 
 
143
 
if test "x$has_ssh_deps" = "xno" ; then
144
 
        if test "x$enable_ssh_plugin" = "xyes" ; then
145
 
                dnl Error out if explicitly asked for the SSH plugin
146
 
                AC_MSG_ERROR([Could not find gconf-sharp-2.0])
147
 
        fi
148
 
        enable_ssh_plugin="no"
149
 
else
150
 
        if test "x$enable_ssh_plugin" = "xauto" ; then
151
 
                enable_ssh_plugin="yes"
152
 
        fi
153
 
fi
154
 
 
155
 
AM_CONDITIONAL(ENABLE_SSH_PLUGIN, test "x$enable_ssh_plugin" = "xyes")
156
 
 
157
 
dnl - Launchpad plugin
158
 
AC_ARG_ENABLE([launchpad-plugin],
159
 
        AS_HELP_STRING([--enable-launchpad-plugin],[Enable the Launchpad plugin]),
160
 
        enable_launchpad_plugin=$enableval,
161
 
        enable_launchpad_plugin=yes)
162
 
 
163
 
AM_CONDITIONAL(ENABLE_LAUNCHPAD_PLUGIN, test "x$enable_launchpad_plugin" = "xyes")
164
 
 
165
 
dnl - Tomboy plugin
166
 
AC_ARG_ENABLE([tomboy-plugin],
167
 
        AS_HELP_STRING([--enable-tomboy-plugin],[Enable the Tomboy plugin]),
168
 
        enable_tomboy_plugin=$enableval,
169
 
        enable_tomboy_plugin=yes)
170
 
 
171
 
AM_CONDITIONAL(ENABLE_TOMBOY_PLUGIN, test "x$enable_tomboy_plugin" = "xyes")
172
 
 
173
 
dnl - Twitter plugin
174
 
AC_ARG_ENABLE([twitter-plugin],
175
 
        AS_HELP_STRING([--enable-twitter-plugin],[Enable the Twitter plugin]),
176
 
        enable_twitter_plugin=$enableval,
177
 
        enable_twitter_plugin=yes)
178
 
 
179
 
AM_CONDITIONAL(ENABLE_TWITTER_PLUGIN, test "x$enable_twitter_plugin" = "xyes")
180
 
 
181
 
dnl - Vinagre plugin
182
 
AC_ARG_ENABLE([vinagre-plugin],
183
 
        AS_HELP_STRING([--enable-vinagre-plugin],[Enable the Vinagre plugin]),
184
 
        enable_vinagre_plugin=$enableval,
185
 
        enable_vinagre_plugin=yes)
186
 
 
187
 
AM_CONDITIONAL(ENABLE_VINAGRE_PLUGIN, test "x$enable_vinagre_plugin" = "xyes")
188
 
 
189
 
dnl - GCalendar plugin
190
 
AC_ARG_ENABLE([gcalendar-plugin],
191
 
        AS_HELP_STRING([--enable-gcalendar-plugin],[Enable the Vinagre plugin]),
192
 
        enable_gcalendar_plugin=$enableval,
193
 
        enable_gcalendar_plugin=yes)
194
 
 
195
 
AM_CONDITIONAL(ENABLE_GCALENDAR_PLUGIN, test "x$enable_gcalendar_plugin" = "xyes")
196
 
 
197
 
dnl Plugin install paths
198
 
 
199
 
AC_ARG_WITH(plugindir, 
200
 
            AS_HELP_STRING([--with-plugindir=DIR],[Plugin install path [$datadir/gnome-do/plugins]]),
201
 
            [plugindir="$withval"], 
202
 
            [plugindir="$datadir/gnome-do/plugins"])
203
 
 
204
 
AC_SUBST(plugindir)
205
 
 
206
 
CSFLAGS=
207
 
 
208
 
AC_SUBST(CSFLAGS)
209
 
 
210
 
AC_CONFIG_FILES([
211
 
        Makefile
212
 
        GNOME-Session/Makefile
213
 
        Evolution/Makefile
214
 
        Evolution/src/Makefile
215
 
        Epiphany/Makefile
216
 
        Amarok/Makefile
217
 
        Rhythmbox/Makefile
218
 
        Rhythmbox/src/Makefile
219
 
        Pidgin/Makefile
220
 
        Pidgin/src/Makefile
221
 
        LocateFiles/Makefile
222
 
        Thunderbird/Makefile
223
 
        Thunderbird/src/Makefile
224
 
        GCalendar/Makefile
225
 
        GoogleCalculator/Makefile
226
 
        OpenSearch/Makefile
227
 
        OpenSearch/src/Makefile
228
 
        Pastebin/Makefile
229
 
        Pastebin/src/Makefile
230
 
        SimplePlugins/Makefile
231
 
        Templates/Makefile
232
 
        Banshee/Makefile
233
 
        Banshee/src/Makefile
234
 
        SSH/Makefile
235
 
        File/Makefile
236
 
        Launchpad/Makefile
237
 
        Launchpad/src/Makefile
238
 
        Launchpad/Resources/Makefile
239
 
        Tomboy/Makefile
240
 
    Twitter/Makefile
241
 
        Vinagre/Makefile
242
 
])
243
 
 
244
 
AC_OUTPUT