~cszikszoy/do-plugins/pastebin

« back to all changes in this revision

Viewing changes to configure.ac

Make build system sane

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
 
1
dnl Warning: This is an automatically generated file, do not edit!
 
2
dnl Process this file with autoconf to produce a configure script.
 
3
AC_PREREQ([2.54])
 
4
AC_INIT([Do Plugins], [0.1])
 
5
AM_INIT_AUTOMAKE([foreign])
8
6
 
9
7
dnl pkg-config
10
8
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
12
10
        AC_MSG_ERROR([You need to install pkg-config])
13
11
fi
14
12
 
15
 
dnl Handle various possible C# compilers
16
 
AC_PATH_PROG(CSC, csc, no)
 
13
SHAMROCK_EXPAND_LIBDIR
 
14
SHAMROCK_EXPAND_BINDIR
 
15
SHAMROCK_EXPAND_DATADIR
 
16
 
 
17
AC_PROG_INSTALL
 
18
 
17
19
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
 
 
182
 
 
183
 
dnl Plugin install paths
184
 
 
185
 
AC_ARG_WITH(plugindir, 
186
 
            AS_HELP_STRING([--with-plugindir=DIR],[Plugin install path [$datadir/gnome-do/plugins]]),
187
 
            [plugindir="$withval"], 
188
 
            [plugindir="$datadir/gnome-do/plugins"])
189
 
 
190
 
AC_SUBST(plugindir)
191
 
 
192
 
CSFLAGS=
193
 
 
194
 
AC_SUBST(CSFLAGS)
 
20
if test "x$GMCS" = "xno"; then
 
21
        AC_MSG_ERROR([gmcs Not found])
 
22
fi
 
23
 
 
24
 
 
25
AC_ARG_ENABLE(debug,
 
26
        AC_HELP_STRING([--enable-debug],
 
27
                [Use 'DEBUG' Configuration [default=YES]]),
 
28
                enable_debug=yes, enable_debug=no)
 
29
AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes)
 
30
if test "x$enable_debug" = "xyes" ; then
 
31
        CONFIG_REQUESTED="yes"
 
32
fi
 
33
AC_ARG_ENABLE(release,
 
34
        AC_HELP_STRING([--enable-release],
 
35
                [Use 'RELEASE' Configuration [default=NO]]),
 
36
                enable_release=yes, enable_release=no)
 
37
AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes)
 
38
if test "x$enable_release" = "xyes" ; then
 
39
        CONFIG_REQUESTED="yes"
 
40
fi
 
41
if test -z "$CONFIG_REQUESTED" ; then
 
42
        AM_CONDITIONAL(ENABLE_DEBUG, true)
 
43
        enable_debug=yes
 
44
fi
 
45
 
 
46
 
 
47
dnl package checks, common for all configs
 
48
PKG_CHECK_MODULES([NDESK_DBUS_10], [ndesk-dbus-1.0])
 
49
PKG_CHECK_MODULES([NDESK_DBUS_GLIB_10], [ndesk-dbus-glib-1.0])
 
50
PKG_CHECK_MODULES([EVOLUTION_SHARP], [evolution-sharp])
 
51
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
 
52
PKG_CHECK_MODULES([GCONF_SHARP_20], [gconf-sharp-2.0])
 
53
PKG_CHECK_MODULES([DOADDINS], [do.addins])
 
54
PKG_CHECK_MODULES([DODBUS], [do.dbus])
 
55
 
 
56
dnl package checks, per config
 
57
 
195
58
 
196
59
AC_CONFIG_FILES([
197
 
        Makefile
198
 
        GNOME-Session/Makefile
199
 
        Evolution/Makefile
200
 
        Evolution/src/Makefile
201
 
        Epiphany/Makefile
202
 
        Amarok/Makefile
203
 
        Rhythmbox/Makefile
204
 
        Rhythmbox/src/Makefile
205
 
        Pidgin/Makefile
206
 
        Pidgin/src/Makefile
207
 
        LocateFiles/Makefile
208
 
        Thunderbird/Makefile
209
 
        Thunderbird/src/Makefile
210
 
        GoogleCalculator/Makefile
211
 
        OpenSearch/Makefile
212
 
        OpenSearch/src/Makefile
213
 
        Pastebin/Makefile
214
 
        Pastebin/src/Makefile
215
 
        SimplePlugins/Makefile
216
 
        Templates/Makefile
217
 
        Banshee/Makefile
218
 
        Banshee/src/Makefile
219
 
        SSH/Makefile
220
 
        File/Makefile
221
 
        Launchpad/Makefile
222
 
        Launchpad/src/Makefile
223
 
        Launchpad/Resources/Makefile
224
 
        Tomboy/Makefile
225
 
        Twitter/Makefile
 
60
Twitter/twitter.pc
 
61
GoogleCalculator/Makefile
 
62
Banshee/Makefile
 
63
Epiphany/Makefile
 
64
Pastebin/pastebin.pc
 
65
LocateFiles/Makefile
 
66
SSH/ssh.pc
 
67
OpenSearch/opensearch.pc
 
68
GoogleCalculator/googlecalculator.pc
 
69
Rhythmbox/Makefile
 
70
GNOME-Session/gnome-session.pc
 
71
Amarok/Makefile
 
72
Banshee/banshee.pc
 
73
Makefile
 
74
OpenSearch/Makefile
 
75
Launchpad/Makefile
 
76
Pidgin/Makefile
 
77
File/file.pc
 
78
Amarok/amarok.pc
 
79
Evolution/Makefile
 
80
SimplePlugins/Makefile
 
81
Twitter/Makefile
 
82
SSH/Makefile
 
83
GNOME-Session/Makefile
 
84
Pastebin/Makefile
 
85
Thunderbird/Makefile
 
86
Tomboy/Makefile
 
87
Evolution/evolution.pc
 
88
Epiphany/epiphany.pc
 
89
Pidgin/pidgin.pc
 
90
Rhythmbox/rhythmbox.pc
 
91
Thunderbird/thunderbird.pc
 
92
Tomboy/tomboy.pc
 
93
LocateFiles/locatefiles.pc
 
94
SimplePlugins/simpleplugins.pc
 
95
Launchpad/launchpad.pc
 
96
File/Makefile
 
97
 
226
98
])
227
99
 
228
100
AC_OUTPUT